blob: 1856aa7ad4f4356c66f0031380d5f42ee9a9f70a [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
17package main
18
19func depsGVisor(p *planner) {
20 p.collect(
21 "github.com/google/gvisor", "release-20200511.0",
22 patches("gvisor.patch"),
23 ).use(
24 "github.com/cenkalti/backoff",
25 "github.com/gofrs/flock",
26 "github.com/google/subcommands",
27 "github.com/kr/pretty",
28 "github.com/kr/pty",
29 "golang.org/x/time",
30 )
31 // gRPC is used by gvisor's bazel machinery, but not present in go.sum. Include it manually.
32 p.collect("github.com/grpc/grpc", "v1.26.0")
33
34 p.collect(
35 "github.com/google/gvisor-containerd-shim", "v0.0.4",
36 patches(
37 "gvisor-containerd-shim.patch", "gvisor-containerd-shim-build.patch",
38 "gvisor-containerd-shim-nogo.patch", "gvisor-shim-root.patch",
39 ),
40 )
41}