mirror of
https://github.com/google/nomulus.git
synced 2025-05-29 17:00:11 +02:00
Fix GPG temp path too long issue for FOSS build
Detailed discussion can be found on github (https://github.com/bazelbuild/bazel/issues/3215). On newer Debian systems as well as on macOS, the temporary folder created to store gpg configs are too long, which results in an error: gpg: can't connect to the agent: File name too long This CL makes affected tests use /tmp as temp folder base. Other options are discussed in the github issue, but this one seems to be the mostly non-harmful one. Note that this change only affect the FOSS build, as internal builds are not affected by the temp directory issue, probably due to the internal build tool using a different base temp directory. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=178803914
This commit is contained in:
parent
026f249955
commit
c941190e71
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ java_library(
|
||||||
GenTestRules(
|
GenTestRules(
|
||||||
name = "GeneratedTestRules",
|
name = "GeneratedTestRules",
|
||||||
default_test_size = "large",
|
default_test_size = "large",
|
||||||
|
# TODO (b/63619837): stop using hardcoded /tmp once
|
||||||
|
# https://github.com/bazelbuild/bazel/issues/3215 is resolved.
|
||||||
|
# If /tmp is not accessible, try changing it to one that is.
|
||||||
|
jvm_flags = ["-Djava.io.tmpdir=/tmp"],
|
||||||
test_files = glob(
|
test_files = glob(
|
||||||
["*Test.java"],
|
["*Test.java"],
|
||||||
exclude = ["RdeUploadActionTest.java"],
|
exclude = ["RdeUploadActionTest.java"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue