Run verify-dependencies only on go1.x

Signed-off-by: Odin Ugedal <odin@ugedal.com>
This commit is contained in:
Odin Ugedal 2019-11-13 15:05:47 +01:00
parent 83f9b8890f
commit 777f97d8de
No known key found for this signature in database
GPG Key ID: AFF9C8242CF7A7AF
3 changed files with 13 additions and 2 deletions

View File

@ -8,6 +8,10 @@ go:
matrix:
include:
- go: 1.x
name: "verify-dependencies"
script:
- make verify-dependencies
- go: 1.12.x
name: "cgroup-systemd"
env:

View File

@ -112,7 +112,7 @@ clean:
rm -rf $(RELEASE_DIR)
rm -rf $(MAN_DIR)
validate: verify-dependencies
validate:
script/validate-gofmt
script/validate-c
$(GO) vet $(allpackages)

View File

@ -109,7 +109,14 @@ You can run a test using your container engine's flags by setting `CONTAINER_ENG
`runc` uses [Go Modules](https://github.com/golang/go/wiki/Modules) for dependencies management.
Please refer to [Go Modules](https://github.com/golang/go/wiki/Modules) for how to add or update
new dependencies.
new dependencies. When updating dependencies, be sure that you are running Go `1.14` or newer.
```
# Update vendored dependencies
make vendor
# Verify all dependencies
make verify-dependencies
```
## Using runc