Skip to content

generator: --from-container-image implies --with-docker #174

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

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

euanh
Copy link
Contributor

@euanh euanh commented Jan 24, 2025

If --from-container-image is specified without --with-docker, the generator builds an SDK from Debian packages, completely ignoring the user's clear intent to build from a container image.

For now, we can assume that a user who specifies --from-container-image also wants to use a container runtime. In future we might be able to support extracting container images without the need for a
runtime. If that happens, we can stop assuming --with-docker
and commands which only specify --from-container-image will continue
to work, so scripts and documentation won't need to be changed.

@euanh euanh added the enhancement New feature or request label Jan 24, 2025
@euanh euanh requested a review from MaxDesiatov as a code owner January 24, 2025 10:45
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

If --from-container-image is specified without --with-docker,
the generator builds an SDK from Debian packages, completely
ignoring the user's clear intent to build from a container
image.

For now, we can assume that a user who specifies --from-container-image
also wants to use a container runtime.  In future we might be able
to support extracting container images without the need for a
runtime.   If that happens, we can stop assuming --with-docker
and commands which only specify --from-container-image will continue
to work, so scripts and documentation won't need to be changed.
@euanh euanh force-pushed the implicit-with-docker branch from c726e57 to ac06500 Compare January 24, 2025 10:50
@euanh euanh enabled auto-merge (squash) January 24, 2025 10:50
@euanh
Copy link
Contributor Author

euanh commented Jan 24, 2025

@swift-ci test

@euanh euanh merged commit 495c5a3 into swiftlang:main Jan 24, 2025
2 of 3 checks passed
@euanh euanh deleted the implicit-with-docker branch January 24, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants