Skip to content

Commit 42a722d

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 42a722d

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.travis.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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.14.x
6+
- 1.15.x
7+
- 1.16.x
98

109
env:
1110
matrix:
@@ -18,19 +17,9 @@ env:
1817
matrix:
1918
fast_finish: true
2019

21-
# Ubuntu 14.04 (trusty) doesn't have a new enough util-linux for nsenter,
22-
# so we have to build it ourselves.
2320
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 .
2521
- sudo apt-get update
2622
- 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
3423

3524
install:
3625
- go get golang.org/x/tools/cmd/cover

pkg/ocicni/ocicni.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func (plugin *cniNetworkPlugin) SetUpPodWithContext(ctx context.Context, podNetw
541541
if err := plugin.forEachNetwork(&podNetwork, false, func(network *cniNetwork, podNetwork *PodNetwork, rt *libcni.RuntimeConf) error {
542542
result, err := network.addToNetwork(ctx, rt, plugin.cniConfig)
543543
if err != nil {
544-
logrus.Errorf("Error while adding pod to CNI network %q: %s", network.name, err)
544+
logrus.Errorf("Error while adding pod todddddd CNI network %q: %s", network.name, err)
545545
return err
546546
}
547547
results = append(results, NetResult{
@@ -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)