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

Regression in 3.4.0 release candidate: no such package '@bazel_tools//third_party/py/gflags' #11731

Closed
mmorearty opened this issue Jul 8, 2020 · 5 comments
Labels
P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: support / not a bug (process)

Comments

@mmorearty
Copy link
Contributor

Description of the problem / feature request:

I'm trying out 3.4.0rc2 in our very large repro. I got the following error:

ERROR: /home/vagrant/.cache/bazel/_bazel_vagrant/a1dee352bc213c3de72700c6468c2f6f/external/io_bazel_rules_docker/container/BUILD:40:11: no such package '@bazel_tools//third_party/py/gflags': BUILD file not found in directory 'third_party/py/gflags' of external repository @bazel_tools. Add a BUILD file to a directory to mark it as a package. and referenced by '@io_bazel_rules_docker//container:build_tar_lib'

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Unfortunately my repro is very large, and I spent about an hour trying to make a small repro case, with no success. (This is in an area of our codebase that I am not at all familiar with, including the Bazel rules it uses). I'm hoping the error message, plus the fact that it's from io_bazel_rules_docker, helps you narrow this down.

I can give you partial information:

What operating system are you running Bazel on?

Ubuntu. Specifically:

$ uname -a
Linux ip-172-31-52-184 4.4.0-1106-aws #117-Ubuntu SMP Wed Apr 8 09:52:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

What's the output of bazel info release?

release 3.4.0rc2

Have you found anything relevant by searching the web?

No.

@Yannic
Copy link
Contributor

Yannic commented Jul 8, 2020

gflags has been deleted from Bazel (and @bazel_tools) in #11564. I believe this should be fixed in rules_docker@HEAD.

@Yannic
Copy link
Contributor

Yannic commented Jul 8, 2020

/cc @aiuto

@mmorearty
Copy link
Contributor Author

Confirmed, thanks. I did then get a different error, but it's an issue in rules_docker, not bazel. (If you're curious, my comment is here)

@aiuto
Copy link
Contributor

aiuto commented Jul 9, 2020 via email

@philwo
Copy link
Member

philwo commented Jul 9, 2020

Looks like they did a release just a few hours ago that should fix it: https://github.com/bazelbuild/rules_docker/releases/tag/v0.14.4

@philwo philwo added P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: support / not a bug (process) labels Jul 9, 2020
@philwo philwo closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: support / not a bug (process)
Projects
None yet
Development

No branches or pull requests

4 participants