Skip to content

Deduplicate apt packages and clean up internals#69

Merged
apaolillo merged 1 commit into
mainfrom
deduplicate
Mar 28, 2026
Merged

Deduplicate apt packages and clean up internals#69
apaolillo merged 1 commit into
mainfrom
deduplicate

Conversation

@apaolillo

Copy link
Copy Markdown
Owner

Wrap sorted() with set() in _add_pkg_apt so duplicate packages are eliminated before rendering the Dockerfile RUN command.

In ConcreteDockerRunner, add a type annotation to _cached_command, pass a positional arg in or instead of a keyword, and rename the shadowed commands_serial variable in exec() to avoid reusing the same name for a different type.

Wrap sorted() with set() in _add_pkg_apt so duplicate packages are
eliminated before rendering the Dockerfile RUN command.

In ConcreteDockerRunner, add a type annotation to _cached_command,
pass a positional arg in __or__ instead of a keyword, and rename the
shadowed commands_serial variable in exec() to avoid reusing the
same name for a different type.

Signed-off-by: Antonio Paolillo <apaolill@gmail.com>
@apaolillo apaolillo self-assigned this Mar 28, 2026
@apaolillo apaolillo merged commit 76b5b6d into main Mar 28, 2026
5 checks passed
@apaolillo apaolillo deleted the deduplicate branch March 28, 2026 13:05
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 this pull request may close these issues.

1 participant