<#19132 Golang: Missing packages when compiling bi...
# github-notifications
c
#19132 Golang: Missing packages when compiling binary in docker environment Issue created by 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.
Copy code
[ERROR] Completed: Compile with Go - (environment:linux_docker, <http://google.golang.org/grpc/internal/syscall|google.golang.org/grpc/internal/syscall>) - <http://google.golang.org/grpc/internal/syscall|google.golang.org/grpc/internal/syscall> failed (exit code 1).
gopath/pkg/mod/google.golang.org/grpc@v1.55.0/internal/syscall/syscall_linux.go:29:2: could not import <http://golang.org/x/sys/unix|golang.org/x/sys/unix> (open : no such file or directory)
Pants version 2.16.0rc0 OS MacOS pantsbuild/pants