blob: 8810a8344ecd2b485ce6ef56dc1f8945944a2c3b [file] [log] [blame]
Serge Bazanskif369cfa2020-05-22 18:36:42 +02001// 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
Serge Bazanski4b1e37c2021-09-28 12:49:15 +020017package fietsje
18
19// deps_gvisor.go contains all dependencies required by gVisor/runsc.
Serge Bazanskif369cfa2020-05-22 18:36:42 +020020
21func depsGVisor(p *planner) {
22 p.collect(
Lorenz Brunc2e3b1b2021-11-11 11:06:41 +010023 "github.com/google/gvisor", "release-20211101.0",
Serge Bazanskif12bedf2021-01-15 16:58:50 +010024 patches(
25 "gvisor.patch",
26 "gvisor-build-against-newer-runtime-specs.patch",
Lorenz Brunc2e3b1b2021-11-11 11:06:41 +010027 "gvisor-cgroup-fix.patch",
Serge Bazanskif12bedf2021-01-15 16:58:50 +010028 ),
Serge Bazanskif369cfa2020-05-22 18:36:42 +020029 ).use(
30 "github.com/cenkalti/backoff",
31 "github.com/gofrs/flock",
32 "github.com/google/subcommands",
33 "github.com/kr/pretty",
34 "github.com/kr/pty",
Serge Bazanskif12bedf2021-01-15 16:58:50 +010035 "github.com/mohae/deepcopy",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020036 "golang.org/x/time",
37 )
Serge Bazanski216fe7b2021-05-21 18:36:16 +020038 // gRPC is used by gvisor's bazel machinery, but not present in go.sum. Include it
39 // manually.
Serge Bazanskif12bedf2021-01-15 16:58:50 +010040 p.collect("github.com/grpc/grpc", "v1.29.1")
Serge Bazanskif369cfa2020-05-22 18:36:42 +020041}