How to cache golang vendor files
I have the following configuration:
before_script:
- source ci/prepare
cache:
untracked: true
paths:
- vendor/
stages:
- deps
- test
deps-go:
tags:
- rhel7
stage: deps
script:
- make deps-go
test-go:
tags:
- rhel7
stage: test
script:
- make test
On the test stage I see:
Running with gitlab-ci-multi-runner 1.5.2 (76fdacd)
Using SSH executor...
Running on 4d5063722eaa via xxxx...
Fetching changes...
Removing vendor/
HEAD is now at e847bf1 add definitions
And test fails, because vendor directory is gone.
Do I have to articfact this directory? node_modules too?