Skip to content

Commit fbf1a72

Browse files
authored
Merge pull request #4760 from zhsj/gomod
Move to Go modules
2 parents b9092fa + 7e46676 commit fbf1a72

559 files changed

Lines changed: 37266 additions & 14233 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
set -o xtrace
200200
mingw32-make.exe binaries
201201
bindir="$(pwd)"
202-
SHIM_COMMIT=$(grep Microsoft/hcsshim vendor.conf | awk '{print $2}')
202+
SHIM_COMMIT=$(grep 'Microsoft/hcsshim ' go.mod | awk '{print $2}')
203203
cd ../../Microsoft/hcsshim
204204
git fetch --tags origin "${SHIM_COMMIT}"
205205
git checkout "${SHIM_COMMIT}"
@@ -229,6 +229,7 @@ jobs:
229229
needs: [project, linters, protos, man]
230230

231231
strategy:
232+
fail-fast: false
232233
matrix:
233234
runtime: [io.containerd.runtime.v1.linux, io.containerd.runc.v1, io.containerd.runc.v2]
234235
runc: [runc, crun]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
id: hcsshim_commit
9292
if: startsWith(matrix.os, 'windows')
9393
shell: bash
94-
run: echo "::set-output name=sha::$(grep Microsoft/hcsshim vendor.conf | awk '{print $2}')"
94+
run: echo "::set-output name=sha::$(grep 'Microsoft/hcsshim ' go.mod | awk '{print $2}')"
9595
working-directory: src/github.com/containerd/containerd
9696

9797
- name: Checkout hcsshim source

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ root-coverage: ## generate coverage profiles for unit tests that require root
377377

378378
vendor:
379379
@echo "$(WHALE) $@"
380-
@vndr
380+
@go mod vendor
381381

382382
help: ## this help
383383
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

Vagrantfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ Vagrant.configure("2") do |config|
8585
curl -fsSL "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" | tar Cxz /usr/local
8686
cat >> /etc/environment <<EOF
8787
PATH=/usr/local/go/bin:$PATH
88-
GO111MODULE=off
8988
EOF
9089
source /etc/environment
9190
cat >> /etc/profile.d/sh.local <<EOF

contrib/Dockerfile.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ RUN apt-get update && apt-get install -y \
3232
libseccomp-dev \
3333
--no-install-recommends
3434

35-
COPY vendor.conf vendor.conf
35+
COPY go.mod go.mod
3636
COPY script/setup/install-runc install-runc
3737
ARG GOPROXY=direct
38-
ARG GO111MODULE=off
3938
RUN ./install-runc
4039

4140
FROM golang-base AS dev

go.mod

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
module github.com/containerd/containerd
2+
3+
go 1.15
4+
5+
require (
6+
github.com/BurntSushi/toml v0.3.1
7+
github.com/Microsoft/go-winio v0.4.15-0.20200908182639-5b44b70ab3ab
8+
github.com/Microsoft/hcsshim v0.8.10
9+
github.com/Microsoft/hcsshim/test v0.0.0-20201119174602-966bebae11b4
10+
github.com/containerd/aufs v0.0.0-20200908144142-dab0cbea06f4
11+
github.com/containerd/btrfs v0.0.0-20201111183144-404b9149801e
12+
github.com/containerd/cgroups v0.0.0-20200824123100-0b889c03f102
13+
github.com/containerd/console v1.0.1
14+
github.com/containerd/continuity v0.0.0-20200710164510-efbc4488d8fe
15+
github.com/containerd/fifo v0.0.0-20201026212402-0724c46b320c
16+
github.com/containerd/go-cni v1.0.1
17+
github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328
18+
github.com/containerd/imgcrypt v1.0.1
19+
github.com/containerd/nri v0.0.0-20201007170849-eb1350a75164
20+
github.com/containerd/ttrpc v1.0.2
21+
github.com/containerd/typeurl v1.0.1
22+
github.com/containerd/zfs v0.0.0-20200918131355-0a33824f23a2
23+
github.com/containernetworking/plugins v0.8.6
24+
github.com/coreos/go-systemd/v22 v22.1.0
25+
github.com/davecgh/go-spew v1.1.1
26+
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c
27+
github.com/docker/go-metrics v0.0.1
28+
github.com/docker/go-units v0.4.0
29+
github.com/emicklei/go-restful v2.9.5+incompatible
30+
github.com/fsnotify/fsnotify v1.4.9
31+
github.com/gogo/googleapis v1.4.0
32+
github.com/gogo/protobuf v1.3.1
33+
github.com/golang/protobuf v1.4.2
34+
github.com/google/go-cmp v0.5.1
35+
github.com/google/uuid v1.1.1
36+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
37+
github.com/hashicorp/go-multierror v1.0.0
38+
github.com/imdario/mergo v0.3.10
39+
github.com/moby/sys/symlink v0.1.0
40+
github.com/opencontainers/go-digest v1.0.0
41+
github.com/opencontainers/image-spec v1.0.1
42+
github.com/opencontainers/runc v1.0.0-rc92
43+
github.com/opencontainers/runtime-spec v1.0.3-0.20200728170252-4d89ac9fbff6
44+
github.com/opencontainers/selinux v1.6.0
45+
github.com/pkg/errors v0.9.1
46+
github.com/prometheus/client_golang v1.7.1
47+
github.com/sirupsen/logrus v1.7.0
48+
github.com/stretchr/testify v1.4.0
49+
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
50+
github.com/tchap/go-patricia v2.2.6+incompatible
51+
github.com/urfave/cli v1.22.2
52+
github.com/willf/bitset v1.1.11 // indirect
53+
go.etcd.io/bbolt v1.3.5
54+
golang.org/x/net v0.0.0-20200707034311-ab3426394381
55+
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
56+
golang.org/x/sys v0.0.0-20201013081832-0aaa2718063a
57+
google.golang.org/grpc v1.30.0
58+
gotest.tools/v3 v3.0.2
59+
k8s.io/api v0.19.4
60+
k8s.io/apimachinery v0.19.4
61+
k8s.io/apiserver v0.19.4
62+
k8s.io/client-go v0.19.4
63+
k8s.io/component-base v0.19.4
64+
k8s.io/cri-api v0.19.4
65+
k8s.io/klog/v2 v2.2.0
66+
k8s.io/utils v0.0.0-20200729134348-d5654de09c73
67+
)
68+
69+
replace (
70+
github.com/gogo/googleapis => github.com/gogo/googleapis v1.3.2
71+
github.com/golang/protobuf => github.com/golang/protobuf v1.3.5
72+
// urfave/cli must be <= v1.22.1 due to a regression: https://github.com/urfave/cli/issues/1092
73+
github.com/urfave/cli => github.com/urfave/cli v1.22.1
74+
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63
75+
google.golang.org/grpc => google.golang.org/grpc v1.27.1
76+
)

0 commit comments

Comments
 (0)