Skip to content

Commit 8f65443

Browse files
committed
travis: fix go_import_path
Without this, Travis CI only works on the main repository (github.com/opencontainers/runtime-spec) but not on forks. It is useful to make Travis CI work on forks for contributors to be able to test their work before submitting a PR upstream. See: https://docs.travis-ci.com/user/languages/go#go-import-path Symptoms: ``` $ make docs go run ./.tool/version-doc.go > version.md .tool/version-doc.go:10:2: cannot find package "github.com/opencontainers/runtime-spec/specs-go" in any of: /home/travis/.gimme/versions/go1.11.13.linux.amd64/src/github.com/opencontainers/runtime-spec/specs-go (from $GOROOT) /home/travis/gopath/src/github.com/opencontainers/runtime-spec/specs-go (from $GOPATH) Makefile:53: recipe for target 'version.md' failed make: *** [version.md] Error 1 The command "make docs" exited with 2. ``` Signed-off-by: Alban Crequy <[email protected]>
1 parent e6143ca commit 8f65443

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ go:
66

77
sudo: required
88

9+
go_import_path: github.com/opencontainers/runtime-spec
10+
911
services:
1012
- docker
1113

0 commit comments

Comments
 (0)