Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 1fb415d

Browse files
authored
Merge pull request #1314 from Random-Liu/cherrypick-#1312-release-1.3
[release/1.3] configure golangci-lint and update based on default xenial distro.
2 parents 5d49e7e + 0973459 commit 1fb415d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ cache:
2121
- "${HOME}/google-cloud-sdk/"
2222

2323
before_install:
24-
# libseccomp in trusty is not new enough, need backports version.
25-
- sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
2624
- sudo apt-get update
2725
# Enable ipv6 for dualstack integration test.
2826
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
2927

3028
install:
3129
- sudo apt-get install btrfs-tools
32-
- sudo apt-get install libseccomp2/trusty-backports
33-
- sudo apt-get install libseccomp-dev/trusty-backports
30+
- sudo apt-get install libseccomp2
31+
- sudo apt-get install libseccomp-dev
3432
- sudo apt-get install socat
3533

3634
before_script:

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ install.tools: .install.gitvalidation .install.golangci-lint .install.vndr ## in
170170

171171
.install.golangci-lint:
172172
@echo "$(WHALE) $@"
173-
$(GO) get -u github.com/golangci/golangci-lint/cmd/golangci-lint
173+
$(GO) get -d github.com/golangci/golangci-lint/cmd/golangci-lint
174+
@cd $(GOPATH)/src/github.com/golangci/golangci-lint/cmd/golangci-lint; \
175+
git checkout v1.18.0; \
176+
go install
174177

175178
.install.vndr:
176179
@echo "$(WHALE) $@"

0 commit comments

Comments
 (0)