We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The folder structure generated by publish_binary does not match dotnet publish. AFAICT, instead of using the supplied RID, it takes the resolved one.
publish_binary
dotnet publish
Here is the work-around:
publish_binary( name = "app_alpine_x64", binary = ":app", target_framework = "net6.0", self_contained = True, runtime_identifier = "alpine-x64", ) pkg_tar( name = "app_alpine_x64_archive", srcs = [ ":app_alpine_x64", ], # strip_prefix = "app_alpine_x64/publish/linux-alpine-x64", strip_prefix = "app_alpine_x64/publish/linux-musl-x64", include_runfiles = True, )
Full repro is here: https://github.com/njlr/rules-dotnet-publish-docker
The rule does not seem to take the user-defined attr into account? https://github.com/bazelbuild/rules_dotnet/blob/master/dotnet/private/rules/publish_binary/publish_binary.bzl#L175
attr
The text was updated successfully, but these errors were encountered:
This should now be fixed on master
Sorry, something went wrong.
No branches or pull requests
The folder structure generated by
publish_binary
does not matchdotnet publish
.AFAICT, instead of using the supplied RID, it takes the resolved one.
Here is the work-around:
Full repro is here: https://github.com/njlr/rules-dotnet-publish-docker
The rule does not seem to take the user-defined
attr
into account?https://github.com/bazelbuild/rules_dotnet/blob/master/dotnet/private/rules/publish_binary/publish_binary.bzl#L175
The text was updated successfully, but these errors were encountered: