Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Semaphore: remove manual Go installation, expedite 'cache restore'
'sem-version' apparently installs Go, so rely on it instead of isntalling Go manually. Execute 'cache restore' after 'checkout' (since it scans for go.mod), but before 'go install' to avoid tar errors unpacking the cache archive: ``` Unpacking command failed: tar: /home/semaphore/go/pkg/mod/github.com/jonboulle/clockwork@v0.2.2/.github/workflows/ci.yml: Cannot open: File exists tar: /home/semaphore/go/pkg/mod/github.com/jonboulle/clockwork@v0.2.2/.github/workflows/.editorconfig: Cannot open: File exists tar: /home/semaphore/go/pkg/mod/github.com/jonboulle/clockwork@v0.2.2/ticker.go: Cannot open: File exists ... ``` 'go install' does something that changes the ownership of go/pkg/mod, tripping up tar. Since 'go install' doesn't need to be run outside of a Go module like 'go get' did when using it to install tool binaries, it can safely be run after checkout. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information