Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency #138

Closed
joprice opened this issue Dec 18, 2019 · 3 comments
Closed

Missing dependency #138

joprice opened this issue Dec 18, 2019 · 3 comments

Comments

@joprice
Copy link

joprice commented Dec 18, 2019

I can't seem to build this project. I get the following error when running bazel build ...:

compilepkg: missing strict dependencies: ... import of "golang.org/x/sys/unix"
No dependencies were provided.
Check that imports in Go sources match importpath attributes in deps.
@mostynb
Copy link
Collaborator

mostynb commented Dec 18, 2019

Which commit are you trying to build, and with which version of bazel? Oh and on which OS?

@mostynb
Copy link
Collaborator

mostynb commented Dec 18, 2019

I can reproduce this on mac, I think it's a variation of bazelbuild/rules_docker#690

If you just want to build a bazel-remote binary on/for mac, this should work:
bazel build //:bazel-remote

Or if you really want to build everything for linux from a mac:
bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 -- ...

@joprice
Copy link
Author

joprice commented Dec 19, 2019

I was trying to build both from a mac for mac to test local changes, and for linux with the intent to run it in docker. These two commands work perfectly for me. Thank you

@joprice joprice closed this as completed Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants