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

@bazel_source//tools/build_defs/pkg rule fails since 0.17.0rc1 release #5964

Closed
dirkboye opened this issue Aug 22, 2018 · 8 comments
Closed

Comments

@dirkboye
Copy link

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

Run a container_image rule. Since two hours or something I always get following error:
(locally I am still on 0.16.1 but I don't think such an error should occur?)

..../68a9659ed6f66b9bac3d5204ededf76d/external/io_bazel_rules_docker/container/BUILD:67:1: no such package '@bazel_source//tools/build_defs/pkg': java.io.IOException: Error downloading [https://releases.bazel.build/0.17.0/rc1/bazel-0.17.0rc1-dist.zip] to ..../68a9659ed6f66b9bac3d5204ededf76d/external/bazel_source/bazel-0.17.0rc1-dist.zip: Checksum was 46dfffac884ccd51fcb493dd86463cb8c21be949fdb17634ca37805fd544beae but wanted a9afd2b16a21085bd6c0a70a23acce30b105a8af3a7b3c92a4b83bea6b623fd8 and referenced by '@io_bazel_rules_docker//container:build_tar'

What operating system are you running Bazel on?

fedora 28

What's the output of bazel info release?

release 0.16.1- (@Non-Git)

If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.

download zip from github
unzip
./compile.sh

@bjchambers
Copy link

Looking at the v0.17.0 release thread it looks like rc1 was updated rather than creating an rc2. If so, that would explain these failures, since the checksum would change. I filed bazelbuild/rules_docker#500 about the issue in rules_docker.

I am curious why a release candidate was updated rather than creating a new release candidate so that people depending on a specific version are not impacted.

@bjchambers
Copy link

Posted a workaround at bazelbuild/rules_docker#500 (comment) in case it helps.

@fwouts
Copy link

fwouts commented Aug 23, 2018

I'm also running into this issue, and it's making CircleCI very sad: https://circleci.com/gh/zenclabs/bazel-javascript/75.

I'd also like to understand why rc1 was replaced instead of creating an rc2.

@philwo
Copy link
Member

philwo commented Aug 23, 2018

Sorry - this must have been a mistake on our side :( Release numbers and labels have to be immutable. @laurentlb will probably know what happened here. If it’s a bug in our release scripts, I can fix it on Monday.

@laurentlb
Copy link
Contributor

My fault, sorry! (also, our script's fault, because it should detect this kind of issue)

@buchgr Do you know if we can fix (rollback?) rc1?

@buchgr
Copy link
Contributor

buchgr commented Aug 23, 2018

@laurentlb I think the best solution is to create 0.17.1 rc1 and abandon 0.17.0 right way, coupled with an announcement.

@laurentlb
Copy link
Contributor

Created 0.17.1: https://releases.bazel.build/0.17.1/rc1/index.html
(sorry for the conflicting name!)

@jin jin added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. untriaged and removed team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. untriaged labels Aug 26, 2018
@jin
Copy link
Member

jin commented Aug 26, 2018

This should be fixed by using 0.17.1, will close this issue now.

@jin jin closed this as completed Aug 26, 2018
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

7 participants