Skip to content

Golang: Missing packages when compiling binary in docker environment #19132

Open
@hardishw

Description

@hardishw

Describe the bug
When compiling go binary in a docker environment, some packages are not provided when the OS differs between the host and docker environment, despite existing in the go.mod. See below.

[ERROR] Completed: Compile with Go - (environment:linux_docker, google.golang.org/grpc/internal/syscall) - google.golang.org/grpc/internal/syscall failed (exit code 1).
gopath/pkg/mod/google.golang.org/[email protected]/internal/syscall/syscall_linux.go:29:2: could not import golang.org/x/sys/unix (open : no such file or directory)

Pants version
2.16.0rc0

OS
MacOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions