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

Keep the same behaviour for the 'base' argument between the rule container_image and its implementation function (#2083) #2084

Merged
merged 1 commit into from Jun 3, 2022

Conversation

ghost
Copy link

@ghost ghost commented May 8, 2022

Really override the ctx.attr.base attribute with the 'base' argument of
the implementattion function of the container_image rule.

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 current behavior?

Issue Number: #2083

What is the new behavior?

We can give the same object type to the base argument of the container_image implementation function than the base attribute of the associated rule.

Does this PR introduce a breaking change?

  • Yes
  • No

@ghost ghost requested review from gravypod, linzhp, pcj, smukherj1 and uhthomas as code owners May 8, 2022 21:34
@ghost ghost changed the title Keep the same behaviour for the 'base' argument between the rule and its implementation function (#2083) Keep the same behaviour for the 'base' argument between the rule container_image and its implementation function (#2083) May 8, 2022
…its implementation function (#2083)

Really override the ctx.attr.base attribute with the 'base' argument of
the implementattion function of the `container_image` rule.
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.

Thanks for the refactoring.

@gravypod gravypod merged commit 5436ff9 into bazelbuild:master Jun 3, 2022
St0rmingBr4in pushed a commit to St0rmingBr4in/rules_docker that referenced this pull request Oct 17, 2022
…its implementation function (bazelbuild#2083) (bazelbuild#2084)

Really override the ctx.attr.base attribute with the 'base' argument of
the implementattion function of the `container_image` rule.
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.

2 participants