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

Clarify intentions for this repo #2

Closed
davidstanke opened this issue Jan 9, 2018 · 1 comment · Fixed by #3
Closed

Clarify intentions for this repo #2

davidstanke opened this issue Jan 9, 2018 · 1 comment · Fixed by #3

Comments

@davidstanke
Copy link
Contributor

Hi Markus! Thanks for sending the initial PR for this repo. Small request—the README says "Currently these rules are focused on retrieving already built packages from repositories, not creating them as artifacts." ...

Can you expand a bit to clarify that we do, in fact, intend for this repo to expand and replace those built-in rules? (And an explanation about why that's a good thing to do?) Thanks!

@MarkusTeufelberger
Copy link
Collaborator

Sure, I just didn't want to assume ownership and direction over the whole repo right from the get-go. :-)

nacl pushed a commit to nacl/rules_pkg that referenced this issue Feb 9, 2021
% This is the 1st commit message:

Allow for more structured package mapping rule attributes

This change modifies the `attributes` attribute of `pkg_files` and `pkg_mkdirs`
to allow for more structured inputs than a list of strings.

For the lack of a better option, the solution for this right now is to serialize
the data in terms of JSON strings, which will be assembled using the new
`pkg_attributes` macro.  Users should always use `pkg_attributes` for this
purpose.

The JSON is decoded within the mapping rules and passed out through their
providers.

A better option would be to pass Providers full of structured data directly into
rules, but, unfortunately Bazel does not support this at this time.

% The commit message bazelbuild#2 will be skipped:

% Whitespace cleanup
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 a pull request may close this issue.

2 participants