Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Support to override ctx.attr.user in the container_image() implementation function (#2081) #2082

Merged
merged 1 commit into from Jun 3, 2022
Merged

Support to override ctx.attr.user in the container_image() implementation function (#2081) #2082

merged 1 commit into from Jun 3, 2022

Conversation

lbcjbb
Copy link
Contributor

@lbcjbb lbcjbb commented May 8, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the new behavior?

We can give the user parameter in the implementation function of the rule container_image to override the attribute of the rule.

Does this PR introduce a breaking change?

  • Yes
  • No

Copy link
Collaborator

@gravypod gravypod left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@gravypod gravypod merged commit 0163e6d into bazelbuild:master Jun 3, 2022
St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants