Commit Graph

17 Commits

Author SHA1 Message Date
tike
dfc873bc15 fix import path trimming during main.go generation
The importPathFromPath function invoked during `revel build`
in callchain Build -> ProcessSource ->  importPathFromPath
assumes that the vendor folder is in the app's root directory
when trimming import paths for inclusion into autogenerated
templates.

Consequently vendor detection fails if the vendor folder
is located at another hiher layer in the directory tree
and /prefix/path/to/vendor/ is not stripped from the
import path, leading to inclusion of invalid importpaths,
resulting in compilation error and build abortion.

This fix makes the vendor folder detection more flexible,
allowing for the vendor folder to be present at any higher
level in the directory hirachy.
2018-02-01 15:25:13 +01:00
NotZippy
2d4ccf289c Set line number to use left parenthesis not right 2017-10-07 21:41:23 -07:00
NotZippy
aa9e0f8600 Added code to make vendoring work 2017-09-25 07:36:48 -07:00
NotZippy
17e7d40d31 Fixed missing debug context parameter name
Added check to see if specfication was not exported
Added warnings if expected types did not match specification
2017-09-20 17:49:34 -07:00
NotZippy
baf5e9f848 Added check to see if parameter was a local object, if so parse it 2017-09-14 17:15:22 -07:00
NotZippy
9d57681ae6 Updated command to use new logging 2017-09-02 09:10:21 -07:00
NotZippy
efcd02de37 Modified harness to bootstrap using the go engine. Skeleton app updated to use new request code 2017-06-07 09:45:09 -07:00
NotZippy
8dac9acf77 Changed samples to example to match repository 2017-03-09 16:01:04 -08:00
sawada_shinnosuke
d8c5c0732f supporting binary vendoring 2016-08-29 11:03:20 +09:00
Jeevanandam M
a5c8a8da09 revel/revel#1057 code improvements docs, errcheck, cyclo, etc 2016-06-17 14:34:22 -07:00
Jeevanandam M
5a57eaa743 revel/revel#1057 code improvements 2016-06-08 19:32:13 -07:00
Jeevanandam M
514b078c3d revel/revel#1057 addressing golint ALL_CAPS 2016-06-08 12:09:48 -07:00
Jeevanandam M
1f8f106573 Related changes by #20 for Walk method 2016-05-27 23:30:14 -07:00
Robert Lillack
95d62c1bbd Improve warning message when unable to generate route for action. 2015-03-04 22:09:53 +01:00
anonx
09c730bcea Reflect the latest changes in revel related to testsuite 2014-11-25 16:17:20 +06:00
Justin Li
a13856d4d0 Update samples import paths 2014-10-30 11:22:53 -04:00
Brenden Soares
9046edff96 Adds harness from 'revel/revel' and updates imports 2014-10-28 22:22:43 -07:00