mrutkows edited a comment on pull request #1118:
URL: 
https://github.com/apache/openwhisk-wskdeploy/pull/1118#issuecomment-781602441


   My assumption is that the gogradle plugin forces you to use a "/vendor" 
directory and we really do not want one at all; however, the "go" command 
assumes that if it sees a "/vendor" directory that it overrides "go.mod".  So 
we need to either:
   
   a) prevent gogradle from installing anything into "/vendor" meaning we need 
to prevent the  `Task :resolveBuildDependencies` and `Task 
:installDependencies` from installing packages into "/vendor" or
   or
   b) we set the new flag option on the "go" command i.e., `-mod=mod` to force 
it to ignore the vendor directory regardless of what gogradle does.
   
   See: https://tip.golang.org/doc/go1.14 for a desc. of this behavior
   
   This blog explains it better and has a demo of switching between go 1.13 and 
go 1.14: https://www.ardanlabs.com/blog/2020/04/modules-06-vendoring.html


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to