summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-11-05 14:21:16 +0000
committer Paul Duffin <paulduffin@google.com> 2022-11-07 14:12:11 +0000
commitf490656a0fbf7eed537c9d5694ef388435724e9a (patch)
tree5575143e944513adc909f5c2f8a6bec33c7383db /java/java_test.go
parent780a185ede7a396ea4f4bc659d4f20537a8e3621 (diff)
Stop LOG_DIR changes causing bp2build to rerun
Retrieving an environment var through Config.Getenv() automatically adds it to a soong.environment.used* file along with its current value. Changes to its current value will trigger a rebuild of the appropriate target. The LOG_DIR is a sub directory of DIST_DIR and on build servers DIST_DIR encodes the build number making it unique every time. So, using Config.Getenv("LOG_DIR") will mean the CI builds will never re-use the previous output. Previously, bp2build and symlink forrest both added LOG_DIR to their respective soong.environment.used* file. This change avoids that by passing through the value from the main() function which retrieves it using availableEnv["LOG_DIR"] which avoids it being added to that file. Bug: 257590265 Test: grep LOG_DIR out/soong/soong.environment.used* # Before this change it includes LOG_DIR, after it does not. Change-Id: Iac76aca2d5dc04f47b0924ab5afedef5014bc8b6
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions