Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assemble_maven fails when workspace_refs is not set #403

Open
agluszak opened this issue Mar 1, 2024 · 0 comments
Open

assemble_maven fails when workspace_refs is not set #403

agluszak opened this issue Mar 1, 2024 · 0 comments

Comments

@agluszak
Copy link

agluszak commented Mar 1, 2024

workspace_refs in assemble_maven defaults to None, but apparently it has to be specified.

ERROR: /home/andrzej.gluszak/code/jetbrains/build-server-protocol/bsp4j/BUILD:22:15: in assemble_maven rule //bsp4j:bsp4j-maven: 
Traceback (most recent call last):
        File "/home/andrzej.gluszak/.cache/bazel/_bazel_andrzej.gluszak/c4fc80b1fd3f4a972d7f2a9d753953d8/external/vaticle_bazel_distribution~override/maven/rules.bzl", line 166, column 34, in _assemble_maven_impl
                pom_file = _generate_pom_file(ctx, version_file)
        File "/home/andrzej.gluszak/.cache/bazel/_bazel_andrzej.gluszak/c4fc80b1fd3f4a972d7f2a9d753953d8/external/vaticle_bazel_distribution~override/maven/rules.bzl", line 94, column 63, in _generate_pom_file
                "--workspace_refs_file=" + ctx.file.workspace_refs.path,
Error: 'NoneType' value has no field or method 'path'
ERROR: /home/andrzej.gluszak/code/jetbrains/build-server-protocol/bsp4j/BUILD:22:15: Analysis of target '//bsp4j:bsp4j-maven' failed
INFO: Analyzed target //bsp4j:bsp4j-maven (222 packages loaded, 4987 targets configured).
WARNING: errors encountered while analyzing target '//bsp4j:bsp4j-maven', it will not be built.
INFO: Found 0 targets...
ERROR: command succeeded, but not all targets were analyzed
INFO: Elapsed time: 0.539s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant