rules_jvm icon indicating copy to clipboard operation
rules_jvm copied to clipboard

Can't clone it in our windows kokoro jobs

Open Mizux opened this issue 1 year ago • 1 comments

all in the title, this https://github.com/bazel-contrib/rules_jvm/blob/main/java/test/com/github/bazel_contrib/contrib_rules_jvm/javaparser/generators/workspace/com/gazelle/java/javaparser/generators/AnnotationFromJavaStandardLibrary.java is waaaaaaay too long on windows...

error in kokoro (using our bazel based build of google/or-tools for windows): WORKSPACE:

git_repository(
    name = "contrib_rules_jvm",
    tag = "v0.9.0",
    #tag = "v0.19.0", # didn't work with junit5
    remote = "https://github.com/bazel-contrib/rules_jvm.git",
)

And the kokoro (fusion2 trace)

C:\tmpfs\src>choco install bazel -y -i 
....
C:\tmpfs\src>bazel version
Build label: 6.3.2
...
C:\tmpfs\src\git\or-tools>bazel build -c opt -s //ortools/... 
...
Error in fail: error running 'git reset --hard tags/v0.9.0' while working with @contrib_rules_jvm:
error: unable to create file java/test/com/github/bazel_contrib/contrib_rules_jvm/javaparser/generators/workspace/com/gazelle/java/javaparser/generators/AnnotationFromJavaStandardLibrary.java: Filename too long
fatal: Could not reset index file to revision 'tags/v0.9.0'.

Mizux avatar Nov 20 '23 16:11 Mizux

note: On github action it seems to be able to clone it, so I guess:

  • kokoro user name/directory is longer or
  • github runner is better configured or
  • bazel 6.4.0 fixit (github runner choco install 6.4.0 ....)

Mizux avatar Nov 20 '23 16:11 Mizux