Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 1 | // Copyright 2020 The Monogon Project Authors. |
| 2 | // |
| 3 | // SPDX-License-Identifier: Apache-2.0 |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | // you may not use this file except in compliance with the License. |
| 7 | // You may obtain a copy of the License at |
| 8 | // |
| 9 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | // |
| 11 | // Unless required by applicable law or agreed to in writing, software |
| 12 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | // See the License for the specific language governing permissions and |
| 15 | // limitations under the License. |
| 16 | |
| 17 | package main |
| 18 | |
| 19 | func depsContainerd(p *planner) { |
| 20 | p.collectOverride( |
Serge Bazanski | f12bedf | 2021-01-15 16:58:50 +0100 | [diff] [blame] | 21 | "github.com/containerd/containerd", "v1.4.3", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 22 | buildTags("no_zfs", "no_aufs", "no_devicemapper", "no_btrfs"), |
| 23 | disabledProtoBuild, |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 24 | ).use( |
| 25 | "github.com/BurntSushi/toml", |
| 26 | "github.com/Microsoft/go-winio", |
| 27 | "github.com/beorn7/perks", |
| 28 | "github.com/cespare/xxhash/v2", |
| 29 | "github.com/cilium/ebpf", |
| 30 | "github.com/containerd/btrfs", |
| 31 | "github.com/containerd/console", |
| 32 | "github.com/containerd/continuity", |
| 33 | "github.com/containerd/fifo", |
| 34 | "github.com/containerd/go-cni", |
| 35 | "github.com/containerd/go-runc", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 36 | "github.com/containerd/imgcrypt", |
| 37 | "github.com/containers/ocicrypt", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 38 | "github.com/containerd/typeurl", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 39 | "github.com/coreos/go-systemd/v22", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 40 | "github.com/cpuguy83/go-md2man/v2", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 41 | "github.com/davecgh/go-spew", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 42 | "github.com/docker/docker", |
| 43 | "github.com/docker/go-events", |
| 44 | "github.com/docker/go-metrics", |
| 45 | "github.com/docker/go-units", |
| 46 | "github.com/docker/spdystream", |
| 47 | "github.com/emicklei/go-restful", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 48 | "github.com/fullsailor/pkcs7", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 49 | "github.com/godbus/dbus/v5", |
| 50 | "github.com/gogo/protobuf", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 51 | "github.com/go-logr/logr", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 52 | "github.com/google/gofuzz", |
| 53 | "github.com/google/uuid", |
| 54 | "github.com/hashicorp/errwrap", |
| 55 | "github.com/hashicorp/go-multierror", |
| 56 | "github.com/hashicorp/golang-lru", |
| 57 | "github.com/imdario/mergo", |
| 58 | "github.com/json-iterator/go", |
| 59 | "github.com/konsorten/go-windows-terminal-sequences", |
| 60 | "github.com/matttproud/golang_protobuf_extensions", |
| 61 | "github.com/modern-go/concurrent", |
| 62 | "github.com/modern-go/reflect2", |
| 63 | "github.com/opencontainers/go-digest", |
| 64 | "github.com/opencontainers/image-spec", |
| 65 | "github.com/opencontainers/runc", |
| 66 | "github.com/opencontainers/runtime-spec", |
| 67 | "github.com/pkg/errors", |
| 68 | "github.com/prometheus/client_golang", |
| 69 | "github.com/prometheus/client_model", |
| 70 | "github.com/prometheus/common", |
| 71 | "github.com/prometheus/procfs", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 72 | "github.com/russross/blackfriday/v2", |
Serge Bazanski | d9ed656 | 2021-01-07 16:06:44 +0100 | [diff] [blame] | 73 | "github.com/shurcooL/sanitized_anchor_name", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 74 | "github.com/sirupsen/logrus", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 75 | "github.com/syndtr/gocapability", |
| 76 | "github.com/tchap/go-patricia", |
| 77 | "github.com/urfave/cli", |
| 78 | "go.etcd.io/bbolt", |
| 79 | "go.opencensus.io", |
| 80 | "golang.org/x/crypto", |
| 81 | "golang.org/x/oauth2", |
| 82 | "golang.org/x/sync", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 83 | "google.golang.org/genproto", |
| 84 | "gopkg.in/inf.v0", |
| 85 | "gopkg.in/yaml.v2", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 86 | "k8s.io/klog/v2", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 87 | "sigs.k8s.io/yaml", |
Lorenz Brun | 74e8e5c | 2021-01-26 14:00:50 +0100 | [diff] [blame] | 88 | ).with(disabledProtoBuild, patches("containerd-netns-statedir.patch")).use( |
| 89 | "github.com/containerd/cri", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 90 | ).with(disabledProtoBuild).use( |
| 91 | "github.com/Microsoft/hcsshim", |
| 92 | "github.com/containerd/cgroups", |
Lorenz Brun | 74e8e5c | 2021-01-26 14:00:50 +0100 | [diff] [blame] | 93 | |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 94 | "github.com/gogo/googleapis", |
| 95 | ).with(buildTags("selinux")).use( |
| 96 | "github.com/opencontainers/selinux", |
Serge Bazanski | f12bedf | 2021-01-15 16:58:50 +0100 | [diff] [blame] | 97 | "github.com/willf/bitset", |
| 98 | ).with(patches( |
| 99 | "ttrpc-hacks.patch", |
| 100 | )).use( |
| 101 | "github.com/containerd/ttrpc", |
Lorenz Brun | 74e8e5c | 2021-01-26 14:00:50 +0100 | [diff] [blame] | 102 | ).with(patches( |
| 103 | "cni-fix-cachepath.patch", |
| 104 | )).use("github.com/containernetworking/cni").replace( |
Serge Bazanski | f12bedf | 2021-01-15 16:58:50 +0100 | [diff] [blame] | 105 | // ttrpc is broken by go protobuf v2, this is a tentative PR that's |
| 106 | // not yet merged by upstream. |
| 107 | // See: https://github.com/containerd/ttrpc/pull/67 |
| 108 | // |
| 109 | // It also contains our own fix that builds up on the above and allows |
| 110 | // services to return the original status error library values. This is |
| 111 | // required for ttrpc to actually work from runsc and for results to be |
| 112 | // correctly interpreted by containerd. |
| 113 | // See: https://github.com/monogon-dev/ttrpc/commit/222b428f008e3ecb11cfff12e3fd92e3143a2f01 |
| 114 | // |
| 115 | // Note: this is not a good fix, and has known issues, like not being |
| 116 | // able to return Details in gRPC status errors. However, with the |
| 117 | // limited usage within gvisor/containerd it works. In the future |
| 118 | // upstream will have to resolve this properly, eg. port ttrpc away |
| 119 | // from gogo, or fix gogo to work with the new protobuf APU. |
| 120 | "github.com/containerd/ttrpc", |
| 121 | "github.com/monogon-dev/ttrpc", "222b428f008e3ecb11cfff12e3fd92e3143a2f01", |
| 122 | ) |
| 123 | |
| 124 | // This is depended on by github.com/containerd/containerd, but not mentioned in their |
| 125 | // vendor.conf. They seem to be moving off of vendoring to gomod, so this should be |
| 126 | // reverted on the next containerd bump (when fietsje will panic about vendor.conf |
| 127 | // missing). |
| 128 | p.collectOverride( |
| 129 | "github.com/checkpoint-restore/go-criu/v4", "v4.1.0", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 130 | ) |
| 131 | |
| 132 | // containernetworking/plugins |
| 133 | p.collectOverride( |
| 134 | "github.com/containernetworking/plugins", "v0.8.2", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 135 | ).use( |
| 136 | "github.com/alexflint/go-filemutex", |
| 137 | "github.com/coreos/go-iptables", |
| 138 | "github.com/j-keck/arping", |
| 139 | "github.com/safchain/ethtool", |
| 140 | ) |
| 141 | } |