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

Allow custom archive name for pkg_tar, pkg_deb, and pkg_zip targets #194

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

davschne
Copy link
Contributor

Resolves Issue #101

@davschne davschne requested a review from aiuto as a code owner June 24, 2020 22:53
Copy link
Collaborator

@aiuto aiuto left a comment

Choose a reason for hiding this comment

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

This seems reasonable.
Have you looked at #193

In that we are discussing something a little more flexible, essentially being able to drop in things like cpu or architecture into the package name dynamically. I may finish up with that, but this would work as a start for that either way.

pkg/pkg.bzl Show resolved Hide resolved
@aiuto aiuto merged commit 19a7b59 into bazelbuild:master Jul 1, 2020
@terinjokes
Copy link

This doesn't work because pkg_deb_impl doesn't know the archive_name keyword.

no such attribute 'archive_name' in 'pkg_deb_impl' rule

aiuto added a commit to aiuto/rules_pkg that referenced this pull request Dec 8, 2020
@aiuto
Copy link
Collaborator

aiuto commented Dec 8, 2020

You're right. I have a PR that fixes it, but I want to write some tests for the various cases. I won't get to that this week, most likely. In the meantime, you could try the patch.

aiuto added a commit that referenced this pull request Dec 8, 2020
I hand tested this. More to come when I add the package_name functionality
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

Successfully merging this pull request may close these issues.

3 participants