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

Fixed issue where repository_ctx for load_arbitrary_tool required sha256s attribute. #545

Merged
merged 2 commits into from
Dec 30, 2020

Conversation

UebelAndre
Copy link
Collaborator

Any repository rule that attempts to use this macro is required to have have a "sha256s": attr.string_dict() attribute. This should not be required (and is inconsistent with the current documentation of the macro). This PR fixes that.

@google-cla google-cla bot added the cla: yes label Dec 30, 2020
Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Thanks!

@illicitonion illicitonion merged commit 04ec59f into bazelbuild:master Dec 30, 2020
@UebelAndre UebelAndre deleted the attrs branch December 30, 2020 23:50
illicitonion pushed a commit that referenced this pull request Jan 21, 2021
…butes repository rules that call it. (#554)

In #545 I fixed an issue where `load_arbitrary_tool` could not be used in repository rules that did not specify particular attributes. This issue was then reintroduced in #551. This PR fixes the issue again and adds a test to prevent this from happening again in the future.
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