commit | b1f770e9988850a28cb93746aad2ce5f6d37c2e8 | [log] [tgz] |
---|---|---|
author | Benjamin Romano <bromano2100@gmail.com> | Thu Jun 18 04:14:09 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jun 18 04:15:17 2020 -0700 |
tree | f04570f7f12baf0e26f419de3d7adddacb1f96b3 | |
parent | 7c4f3ff7391862881056005db02c4be0d2bc147a [diff] |
Do not use DOS epoch for timestamps of zip entries in Android rules **Background** I noticed cache output inconsistencies between my local and CI builds. I traced it down to the zip library in Java includes the timezone info within the extra field section of each zip entry. This appears to be a problem starting with Java 8 (See comment from Gradle's ZipCopyAction source code for more info: https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java#L42-L56) **Changes** * Switch to using `February 1, 1980` instead to avoid this edge case **Test Plan** Ensure unit tests pass Closes #10976. PiperOrigin-RevId: 317075345
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only 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