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

Fix build for Bazel 0.25 and later #260

Merged
merged 3 commits into from
Oct 25, 2019
Merged

Conversation

ruuda
Copy link
Contributor

@ruuda ruuda commented Oct 22, 2019

The new_http_archive rule has been replaced with just http_archive in recent versions of Bazel. See also https://stackoverflow.com/a/58291928.

The last documentation that still includes new_http_archive is for version 0.22. The first version where http_archive appears on the "Repository rules" page is Bazel version 0.25. So I expect this
makes the BUILD files compatible with Bazel 0.25 and later, but possibly earlier versions too. I tested with 0.29.1.

The new_http_archive rule has been replaced with just http_archive in
recent versions of Bazel. See also https://stackoverflow.com/a/58291928.

The last documentation that still includes new_http_archive is for
version 0.22. [1] The first version where http_archive appears on the
"Repository rules" page is Bazel version 0.25. [2] So I expect this
makes the BUILD files compatible with Bazel 0.25 and later, but possibly
earlier versions too. I tested with 0.29.1.

[1]: https://docs.bazel.build/versions/0.22.0/be/workspace.html#new_http_archive
[2]: https://docs.bazel.build/versions/0.25.0/repo/http.html#http_archive
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@ruuda
Copy link
Contributor Author

ruuda commented Oct 22, 2019

@googlebot I signed it!

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

The build failed, and the logs say this:

  bazel: Java 1.8 is required to install this formula.
  Install AdoptOpenJDK 8 with Homebrew Cask:
    brew cask install homebrew/cask-versions/adoptopenjdk8
  Error: An unsatisfied requirement failed this build.

So let's try that then.
@jan-wassenberg jan-wassenberg merged commit 214f2bb into google:master Oct 25, 2019
@jan-wassenberg
Copy link
Member

Hi Ruud, thanks for these fixes.
Guetzli is a spiritual predecessor of JPEG XL, which we're looking forward to open-sourcing in Dec.
Cheers!

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

Successfully merging this pull request may close these issues.

3 participants