-
Notifications
You must be signed in to change notification settings - Fork 34
Support go modules if a go.mod
is present
#2
Comments
So basically if there's a I've never worked with Go Modules before :D |
Yeah essentially
Eventually The other option that can work in conjunction with
So it might even make sense to have the following behavior:
|
I can put up a PR and a test repo to see if its something you want to include in this base golang action |
Here's an example of using go modules: https://github.com/actions/workflow-parser/pull/30 |
|
Yes for In addition if the project is NOT using
Yes, if the user of the action specifies their own make targets then they'd be responsible for configuring the GOFLAGS and go build commands to run using |
…nd action tests
@cedrickring I've got a PR that adds support for Also a series of other PRs to add tests and support for multiple golang versions in the repo. |
Hey @dougnukem, thanks for all the PRs. I'm quite busy atm, but I'll look into them later today or tomorrow 👍 |
…nd action tests
…nd action tests
…nd action tests
…nd action tests
…nd action tests
Getting this error for the go dep vendor test: |
I'll take a look
|
@cedrickring hmm trying to reproduce that error local I'm unable to, is there any way to manually kick off the action run again in case it was an intermittent issue. Also are you able to run it locally e.g. via: https://github.com/nektos/act
|
I wonder if there is some weirdness validating the hash of the text package due to some line-ending differences of me running on a MacOS env vs a purely linux one, or git configuration. Dep documentation claims its
Maybe I can just disable support for vendored dep default build support and investigate that separately. |
Go modules is looking to be the standard tool for managing dependencies and will be built into the
go build
toolchain.The action could support go modules if the action detects
go.mod
If a repository has modules it is expected to run the build outside the $GOPATH, otherwise it has to inject environment variables to force the go tooling to use modules by default
GO111MODULES=on
.Go team is planning on deprecating the
$GOPATH
ingo1.13
and makingGO111MODULES=on
by default.Alternatively this could just be left to users defining their GO111MODULE in a Makefile or build script.
The text was updated successfully, but these errors were encountered: