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

Fix empty container_bundle #2067

Merged
merged 1 commit into from
May 25, 2022

Conversation

laurynaslubys
Copy link
Contributor

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?

incremental_load is used for both defining single container targets and container_bundles. Defining an empty container_bundle crashes as there's an assumption that at least one image is defined regardless.

Issue Number: fixes #2010

What is the new behavior?

An empty container_bundle does not crash. We do not try to build a run command if run is not set to True

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@laurynaslubys laurynaslubys changed the title Fix empty container suite Fix empty container_bundle Apr 23, 2022
@linzhp linzhp merged commit 8e18bde into bazelbuild:master May 25, 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.

0.23.0 container_bundle crashes when called with empty images list
2 participants