commit | 62199eab1bf9cc33bc12bb89cd8125bd3c26e3eb | [log] [tgz] |
---|---|---|
author | Ed Schouten <ed.schouten@prodrive-technologies.com> | Mon Jan 07 06:59:30 2019 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Mon Jan 07 07:00:55 2019 -0800 |
tree | 7d05c063291daf5daec2a8c30ccca958ee8bed76 | |
parent | b5f57302c146415b9d3d91885c4e71e99c09c1a7 [diff] |
Allow pkg_tar's strip_prefix to work on directory output target names. For build targets that yield a directory output, it is sometimes of interest to turn them into tarballs, Docker images, etc., that contain the directory output directly, without having any name prefix to it. This currently breaks, because setting strip_prefix to the same name as the directory itself causes build_tar.py to use an empty filename. There is a check in the code to remove leading slashes, which breaks on empty strings. Closes #6980. PiperOrigin-RevId: 228158067
{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.