commit | 453df55ff16d7842e72843bfe38a4e97677fa617 | [log] [tgz] |
---|---|---|
author | Marcel Hlopko <hlopko@google.com> | Fri Jun 28 08:40:00 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Jun 28 08:41:04 2019 -0700 |
tree | 734c7365fc5d8bc1e014ac2ed4607cbfe5ecbf12 | |
parent | de9696e5d161bcc978e2499b6afd9f7981870d0e [diff] |
Always strip /external/<repo_name> from proto import path Before this PR, when strip_import_prefix was not specified, and the proto target was declared in an external repository, Bazel generated import path that leaked `external/<repository_name>` path fragment. That path fragment is an implementation detail of Bazel's execroot layout and should not be used in proto source files. This PR adds a correct path fragment to the import paths. It also introduces an incompatible flag `--incompatible_do_not_emit_buggy_external_repo_import` that removes the incorrect import path from Bazel. Fixes https://github.com/bazelbuild/bazel/issues/8030. Incompatible change: https://github.com/bazelbuild/bazel/issues/8711. Closes #8683. PiperOrigin-RevId: 255606742
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.