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

Don't use symlinks in maven_publish DefaultInfo #552

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

sitaktif
Copy link
Contributor

Symlinks in DefaultInfo is not supported by remote build execution at
the moment (see bazelbuild/bazel#13355).

Removing use of symlinks as a workaround for the time being since the
issue above is not trivial to fix.


The following command (assuming bazel-rbe is a wrapper to run bazel with remote build execution)...

bazel-rbe run //my/package:mytarget.publish --define "maven_repo=..." --remote_download_outputs=toplevel

...only works once this patch is applied. Before then, it would fail to find the artifact when being run.

There is currently a workaround consisting in running with --remote_download_outputs=all but it causes many unnecessary downloads.

"uploader": ctx.executable._uploader,
},
files = [
ctx.file.pom,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we please alphabetise this list?

Symlinks in DefaultInfo is not supported by remote build execution at
the moment (see bazelbuild/bazel#13355).

Removing use of symlinks as a workaround for the time being since the
issue above is not trivial to fix.
@sitaktif sitaktif force-pushed the maven-publish-no-symlinks branch from 4235f41 to 6d29812 Compare April 28, 2021 10:23
Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@shs96c shs96c merged commit 64fb924 into bazel-contrib:master Apr 28, 2021
@sitaktif sitaktif deleted the maven-publish-no-symlinks branch April 28, 2021 20:43
@sitaktif
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants