Skip to content

Commit 52bfc9f

Browse files
authored
Merge pull request #3078 from thaJeztah/1.1_bump_golang
[release/1.1 backport] Bump to Go 1.11.x
2 parents 9d16e2e + 8f044b8 commit 52bfc9f

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ environment:
1212
GOPATH: C:\gopath
1313
CGO_ENABLED: 1
1414
matrix:
15-
- GO_VERSION: 1.10
15+
- GO_VERSION: 1.11
1616

1717
before_build:
1818
- choco install -y mingw

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
language: go
88

99
go:
10-
- "1.10.x"
10+
- "1.11.x"
1111

1212
go_import_path: github.com/containerd/containerd
1313

content/testsuite/testsuite.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
401401
labels := map[string]string{
402402
"k1": "v1",
403403
"k2": "v2",
404+
404405
"containerd.io/gc.root": rootTime,
405406
}
406407

@@ -437,6 +438,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
437438

438439
info.Labels = map[string]string{
439440
"k1": "v1",
441+
440442
"containerd.io/gc.root": rootTime,
441443
}
442444
preUpdate = time.Now()

contrib/Dockerfile.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
#
88

99
# Install proto3
10-
FROM golang:1.10 AS proto3
10+
FROM golang:1.11 AS proto3
1111
RUN apt-get update && apt-get install -y autoconf automake g++ libtool unzip
1212
COPY script/setup/install-protobuf install-protobuf
1313
RUN ./install-protobuf
1414

1515
# Install runc
16-
FROM golang:1.10 AS runc
16+
FROM golang:1.11 AS runc
1717
RUN apt-get update && apt-get install -y curl libseccomp-dev
1818
COPY vendor.conf /go/src/github.com/containerd/containerd/vendor.conf
1919
COPY script/setup/install-runc install-runc
2020
RUN ./install-runc
2121

22-
FROM golang:1.10
22+
FROM golang:1.11
2323
RUN apt-get update && apt-get install -y btrfs-tools gcc git libseccomp-dev make xfsprogs
2424

2525
COPY --from=proto3 /usr/local/bin/protoc /usr/local/bin/protoc

metadata/content_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func checkContentLeased(ctx context.Context, db *DB, dgst digest.Digest) error {
130130
return db.View(func(tx *bolt.Tx) error {
131131
bkt := getBucket(tx, bucketKeyVersion, []byte(ns), bucketKeyObjectLeases, []byte(lease), bucketKeyObjectContent)
132132
if bkt == nil {
133-
return errors.Wrapf(errdefs.ErrNotFound, "bucket not found", lease)
133+
return errors.Wrapf(errdefs.ErrNotFound, "bucket not found %s", lease)
134134
}
135135
v := bkt.Get([]byte(dgst.String()))
136136
if v == nil {

snapshots/testsuite/testsuite.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
687687
expected = map[string]string{
688688
"l1": "updated",
689689
"l3": "v3",
690+
690691
"containerd.io/gc.root": rootTime,
691692
}
692693
st.Labels = map[string]string{
@@ -701,6 +702,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
701702

702703
expected = map[string]string{
703704
"l4": "v4",
705+
704706
"containerd.io/gc.root": rootTime,
705707
}
706708
st.Labels = expected

0 commit comments

Comments
 (0)