Skip to content

The "go" branch does not compile without modification #6053

Closed

Description

@uhthomas

Description

The branch, go, does not compile without running go mod tidy to fix dependencies.

Steps to reproduce

$ git clone https://github.com/google/gvisor
$ cd gvisor
$ git checkout go
$ go build ./...
go: gvisor.dev/gvisor/pkg/eventchannel/eventchannel_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/metric/metric_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/sentry/arch/registers_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/sentry/kernel/memevent/memory_events_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/sentry/kernel/uncaught_signal_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/sentry/strace/strace_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]
go: gvisor.dev/gvisor/pkg/sentry/unimpl/unimplemented_syscall_go_proto: package github.com/golang/protobuf/proto imported from implicitly required module; to add missing requirements, run:
        go get github.com/golang/protobuf/[email protected]

Running go mod tidy fixes it.

Environment

Please include the following details of your environment:

  • runsc -version
  • docker version or docker info (if available)
  • kubectl version and kubectl get nodes (if using Kubernetes)
  • uname -a
  • git describe (if built from source)
  • runsc debug logs (if available)
  • go go version go1.16.4 linux/amd64

Activity

  1. added
    type: bug
    on May 21, 2021
  2. uhthomas commented on May 22, 2021

    @uhthomas
    Author

    and for completeness, the diff is

    diff --git a/go.mod b/go.mod
    index 870fb0b83..e65f8c717 100644
    --- a/go.mod
    +++ b/go.mod
    @@ -3,57 +3,46 @@ module gvisor.dev/gvisor
     go 1.16
    
     require (
    -       cloud.google.com/go v0.75.0 // indirect
    -       github.com/BurntSushi/toml v0.3.1 // indirect
    +       github.com/BurntSushi/toml v0.3.1
            github.com/Microsoft/go-winio v0.4.16 // indirect
            github.com/Microsoft/hcsshim v0.8.14 // indirect
    -       github.com/cenkalti/backoff v1.1.1-0.20190506075156-2146c9339422 // indirect
    -       github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327 // indirect
    -       github.com/containerd/console v1.0.1 // indirect
    -       github.com/containerd/containerd v1.3.9 // indirect
    +       github.com/bazelbuild/rules_go v0.27.0
    +       github.com/cenkalti/backoff v1.1.1-0.20190506075156-2146c9339422
    +       github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327
    +       github.com/containerd/console v1.0.1
    +       github.com/containerd/containerd v1.3.9
            github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e // indirect
    -       github.com/containerd/fifo v0.0.0-20191213151349-ff969a566b00 // indirect
    -       github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328 // indirect
    +       github.com/containerd/fifo v0.0.0-20191213151349-ff969a566b00
    +       github.com/containerd/go-runc v0.0.0-20200220073739-7016d3ce2328
            github.com/containerd/ttrpc v1.0.2 // indirect
    -       github.com/containerd/typeurl v0.0.0-20200205145503-b45ef1f1f737 // indirect
    -       github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible // indirect
    -       github.com/docker/docker v1.4.2-0.20191028175130-9e7d5ac5ea55 // indirect
    -       github.com/docker/go-connections v0.3.0 // indirect
    -       github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
    -       github.com/gofrs/flock v0.8.0 // indirect
    -       github.com/gogo/googleapis v1.4.0 // indirect
    -       github.com/gogo/protobuf v1.3.1 // indirect
    -       github.com/golang/mock v1.4.4 // indirect
    -       github.com/google/btree v1.0.0 // indirect
    +       github.com/containerd/typeurl v0.0.0-20200205145503-b45ef1f1f737
    +       github.com/gofrs/flock v0.8.0
    +       github.com/gogo/protobuf v1.3.1
    +       github.com/golang/protobuf v1.4.3
    +       github.com/google/btree v1.0.0
            github.com/google/go-cmp v0.5.4 // indirect
    -       github.com/google/go-github/v32 v32.1.0 // indirect
    -       github.com/google/pprof v0.0.0-20210115211752-39141e76b647 // indirect
    -       github.com/google/subcommands v1.0.2-0.20190508160503-636abe8753b8 // indirect
    +       github.com/google/subcommands v1.0.2-0.20190508160503-636abe8753b8
            github.com/hashicorp/go-multierror v1.1.0 // indirect
    -       github.com/kr/pty v1.1.4-0.20190131011033-7dc38fb350b1 // indirect
    -       github.com/mattbaird/jsonpatch v0.0.0-20171005235357-81af80346b1a // indirect
    -       github.com/mohae/deepcopy v0.0.0-20170308212314-bb9b5e7adda9 // indirect
    -       github.com/opencontainers/image-spec v1.0.1 // indirect
    +       github.com/kr/pty v1.1.4-0.20190131011033-7dc38fb350b1
    +       github.com/mattbaird/jsonpatch v0.0.0-20171005235357-81af80346b1a
    +       github.com/mohae/deepcopy v0.0.0-20170308212314-bb9b5e7adda9
            github.com/opencontainers/runc v0.1.1 // indirect
    -       github.com/opencontainers/runtime-spec v1.0.2 // indirect
    -       github.com/pborman/uuid v1.2.0 // indirect
    -       github.com/sirupsen/logrus v1.7.0 // indirect
    -       github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2 // indirect
    -       github.com/vishvananda/netlink v1.0.1-0.20190930145447-2ec5bdc52b86 // indirect
    +       github.com/opencontainers/runtime-spec v1.0.2
    +       github.com/sirupsen/logrus v1.7.0
    +       github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2
    +       github.com/vishvananda/netlink v1.0.1-0.20190930145447-2ec5bdc52b86
            github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f // indirect
    -       github.com/xeipuuv/gojsonschema v1.2.0 // indirect
    -       go.uber.org/multierr v1.6.0 // indirect
    +       go.opencensus.io v0.22.5 // indirect
            golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect
            golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5 // indirect
    -       golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect
    -       golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
    -       golang.org/x/tools v0.1.0 // indirect
    -       google.golang.org/api v0.36.0 // indirect
    +       golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4
    +       golang.org/x/text v0.3.4 // indirect
    +       golang.org/x/time v0.0.0-20191024005414-555d28b269f0
    +       google.golang.org/appengine v1.6.7 // indirect
    +       google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7 // indirect
            google.golang.org/grpc v1.36.0-dev.0.20210208035533-9280052d3665 // indirect
    -       google.golang.org/protobuf v1.25.1-0.20201020201750-d3470999428b // indirect
    -       gopkg.in/yaml.v2 v2.2.8 // indirect
    -       honnef.co/go/tools v0.1.1 // indirect
    -       k8s.io/api v0.16.13 // indirect
    -       k8s.io/apimachinery v0.16.14-rc.0 // indirect
    -       k8s.io/client-go v0.16.13 // indirect
    +       google.golang.org/protobuf v1.25.1-0.20201020201750-d3470999428b
    +       k8s.io/api v0.16.13
    +       k8s.io/apimachinery v0.16.14-rc.0
    +       k8s.io/client-go v0.16.13
     )
  3. self-assigned this
    on May 22, 2021
  4. added
    area: tooling
    on May 22, 2021
  5. added a commit that references this issue on May 24, 2021
    747f960
  6. added 3 commits that reference this issue on Jun 5, 2021
    084872e
    3d199e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: toolingtype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions