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

Blog post for Bazel 3.7 #240

Merged
merged 1 commit into from
Oct 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions _posts/2020-10-20-bazel-3-7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: posts
title: "Bazel 3.7"
authors:
- katre
---

[Bazel 3.7](https://github.com/bazelbuild/bazel/releases/tag/3.7.0) is a [minor
release](https://docs.bazel.build/versions/3.7.0/backward-compatibility.html).
It is an incremental update to Bazel 3.6.

## Incompatible changes

* The syntax `//foo/BUILD` can no longer be used on the command line to refer to the `//foo:BUILD` target. Use `//foo:BUILD` (preferred) or `foo/BUILD` instead. This does not affect BUILD/bzl files, where that syntax already didn't work.
* Remove the `--objc_header_scanner_tool` flag. The flag was primarily used internally, and to our knowledge, a compatible tool was never released. Therefore this flag is believed to be unused.

## Android

* Non-android targets are not in error when `android_sdk_repository` is present but invalid.

## Java

* Include `resources` attribute in dependency attributes for `java_*` coverage configuration.
* Javac now supports [multiplex workers](https://docs.bazel.build/versions/3.7.0/multiplex-worker.html), but it is not enabled in the toolchain.

## Other changes

* `select()` directly [supports](https://docs.bazel.build/versions/3.7.0/configurable-attributes.html#platforms) `constraint_value` with no need for an intermediate `config_setting`.
* [`--trim\_test\_configuration`](https://docs.bazel.build/versions/3.7.0/command-line-reference.html#flag--trim_test_configuration) should work for almost all cases when a non-test target depends on a test.
* Bazel now allows symbolic links that point to their own ancestor unless they are traversed recursively by e.g. a `//...` recursive target pattern or a recursive glob.
* Generated Go protobufs no longer depend on `//net/proto2/go:proto`

This release contains contributions from many people at Google, as well as Benjamin Peterson, Cristian Hancila, Ed Schouten, Fredrik Medley, Kalle Johansson, Keith Smiley, Kseniia Vasilchuk, Michael Eisel, Michael Hackner, Michael Krasnyk, Mostyn Bramley-Moore, Ruixin Bao, Samuel Giddins, Simon Stewart, Torgil Svensson, Ulf Adams, Vasilios Pantazopoulos, Wenyu Zhang, Yannic Bonenberger, jgehw, and yoav-steinberg.