Adds changes to entrypoint.sh to support golang modules and vendoring.
If project contains go.mod
set GO111MODULE=on to enable go modules support
If project ALSO contains /vendor
set GOFLAGS="-mod=vendor" to ensure we only use the /vendor dependencies
Closes cedrickring/golang-action#2
Adds changes to
entrypoint.sh
to support golang modules and vendoring.If project contains
go.mod
setGO111MODULE=on
to enable go modules support If project ALSO contains/vendor
setGOFLAGS="-mod=vendor"
to ensure we only use the/vendor
dependencies