-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
travis ci script doesn't work with go modules #11
Comments
Another example output, running just the build step locally:
|
Update, missed
|
Ah... That's because it switches to a different directory. This may be a bug in go but I'm not sure. |
We can probably use |
Reading the |
Will that actually build the files? |
Hm, you're probably right. We can probably get away with building with respect to the root module (for now, at least). |
@Stebalien The other option is we have a new modules aware script that we pull into newly migrated repos? |
Yes.
We can actually do it all in one script: go list -f '{{if (len .GoFiles)}}{{.ImportPath}} {{if .Module}}{{.Module.Dir}}{{else}}{{.Dir}}{{end}}{{end}}' ./... | while read pkg dir; do
cd "$dir"
go build -o /dev/null "$pkg"
done |
The script outputs the following log and error:
Source: https://travis-ci.org/libp2p/go-libp2p-secio/jobs/485661465
The text was updated successfully, but these errors were encountered: