Skip to content

Commit

Permalink
Merge pull request #3078 from thaJeztah/1.1_bump_golang
Browse files Browse the repository at this point in the history
[release/1.1 backport] Bump to Go 1.11.x
  • Loading branch information
estesp committed Mar 7, 2019
2 parents 9d16e2e + 8f044b8 commit 52bfc9f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ environment:
GOPATH: C:\gopath
CGO_ENABLED: 1
matrix:
- GO_VERSION: 1.10
- GO_VERSION: 1.11

before_build:
- choco install -y mingw
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
language: go

go:
- "1.10.x"
- "1.11.x"

go_import_path: github.com/containerd/containerd

Expand Down
2 changes: 2 additions & 0 deletions content/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ func checkLabels(ctx context.Context, t *testing.T, cs content.Store) {
labels := map[string]string{
"k1": "v1",
"k2": "v2",

"containerd.io/gc.root": rootTime,
}

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

info.Labels = map[string]string{
"k1": "v1",

"containerd.io/gc.root": rootTime,
}
preUpdate = time.Now()
Expand Down
6 changes: 3 additions & 3 deletions contrib/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
#

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

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

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

COPY --from=proto3 /usr/local/bin/protoc /usr/local/bin/protoc
Expand Down
2 changes: 1 addition & 1 deletion metadata/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func checkContentLeased(ctx context.Context, db *DB, dgst digest.Digest) error {
return db.View(func(tx *bolt.Tx) error {
bkt := getBucket(tx, bucketKeyVersion, []byte(ns), bucketKeyObjectLeases, []byte(lease), bucketKeyObjectContent)
if bkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "bucket not found", lease)
return errors.Wrapf(errdefs.ErrNotFound, "bucket not found %s", lease)
}
v := bkt.Get([]byte(dgst.String()))
if v == nil {
Expand Down
2 changes: 2 additions & 0 deletions snapshots/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh
expected = map[string]string{
"l1": "updated",
"l3": "v3",

"containerd.io/gc.root": rootTime,
}
st.Labels = map[string]string{
Expand All @@ -701,6 +702,7 @@ func checkUpdate(ctx context.Context, t *testing.T, snapshotter snapshots.Snapsh

expected = map[string]string{
"l4": "v4",

"containerd.io/gc.root": rootTime,
}
st.Labels = expected
Expand Down

0 comments on commit 52bfc9f

Please sign in to comment.