From 8f65443c9414b4872c3a1a3f8b6380004b66f544 Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Fri, 23 Oct 2020 12:44:54 +0200 Subject: [PATCH] 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 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 82e03a210..ff332f328 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,8 @@ go: sudo: required +go_import_path: github.com/opencontainers/runtime-spec + services: - docker