Skip to content

Commit 3352c81

Browse files
committed
travis: bump Go versions to 1.15/1.16 and build distro to bionic
Let's join the 21st century. Signed-off-by: Dan Williams <[email protected]>
1 parent 87390b5 commit 3352c81

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.travis.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
language: go
2-
dist: trusty
2+
dist: bionic
33

44
go:
5-
- 1.9.x
6-
- 1.10.x
7-
- 1.11.x
8-
- 1.12.x
5+
- 1.15.x
6+
- 1.16.x
97

108
env:
119
matrix:
@@ -18,19 +16,9 @@ env:
1816
matrix:
1917
fast_finish: true
2018

21-
# Ubuntu 14.04 (trusty) doesn't have a new enough util-linux for nsenter,
22-
# so we have to build it ourselves.
2319
before_install:
24-
- wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.gz -qO - | tar -xz -C .
2520
- sudo apt-get update
2621
- sudo apt-get install -y libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool
27-
- pushd util-linux-2.24.1
28-
- ./autogen.sh
29-
- ./configure
30-
- make
31-
- sudo cp ./nsenter /usr/bin
32-
- popd
33-
- rm -rf util-linux-2.24.1
3422

3523
install:
3624
- go get golang.org/x/tools/cmd/cover

pkg/ocicni/ocicni.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ func buildCNIRuntimeConf(podNetwork *PodNetwork, ifName string, runtimeConfig Ru
810810
}
811811

812812
// Propagate existing CNI_ARGS to non-k8s consumers
813-
for _, kvpairs := range strings.Split(os.Getenv("CNI_ARGS"), ";"){
813+
for _, kvpairs := range strings.Split(os.Getenv("CNI_ARGS"), ";") {
814814
if keyval := strings.SplitN(kvpairs, "=", 2); len(keyval) == 2 {
815815
rt.Args = append(rt.Args, [2]string{keyval[0], keyval[1]})
816816
}

0 commit comments

Comments
 (0)