Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
1bf4fece12
commit
a7dc052b7e
|
@ -130,23 +130,8 @@ projects, and makes merge requests easier to review.
|
||||||
In some cases, such as building a Go project for it to act as a dependency of a
|
In some cases, such as building a Go project for it to act as a dependency of a
|
||||||
CI run for another project, removing the `vendor/` directory means the code must
|
CI run for another project, removing the `vendor/` directory means the code must
|
||||||
be downloaded repeatedly, which can lead to intermittent problems due to rate
|
be downloaded repeatedly, which can lead to intermittent problems due to rate
|
||||||
limiting or network failures. In these circumstances, you should cache the
|
limiting or network failures. In these circumstances, you should [cache the
|
||||||
downloaded code between runs with a `.gitlab-ci.yml` snippet like this:
|
downloaded code between](../../ci/caching/index.md#caching-go-dependencies).
|
||||||
|
|
||||||
```yaml
|
|
||||||
.go-cache:
|
|
||||||
variables:
|
|
||||||
GOPATH: $CI_PROJECT_DIR/.go
|
|
||||||
before_script:
|
|
||||||
- mkdir -p .go
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- .go/pkg/mod/
|
|
||||||
|
|
||||||
test:
|
|
||||||
extends: .go-cache
|
|
||||||
# ...
|
|
||||||
```
|
|
||||||
|
|
||||||
There was a [bug on modules
|
There was a [bug on modules
|
||||||
checksums](https://github.com/golang/go/issues/29278) in Go < v1.11.4, so make
|
checksums](https://github.com/golang/go/issues/29278) in Go < v1.11.4, so make
|
||||||
|
|
Loading…
Reference in New Issue