Skip to content

Fix: Bad docker image name prefix pruning #1692

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KronsyC
Copy link

@KronsyC KronsyC commented Jun 27, 2025

If a workspace name started with _ or ., the generated docker image name segment would be invalid due to -_ or -. sequences, this code simply extends the postfix pruning code to also prune these prefixes

closes #1691

If a workspace name started with _ or ., the generated docker image name
segment would be invalid due to `-_` or `-.` sequences, this code simply
extends the postfix pruning code to also prune these prefixes
@KronsyC KronsyC requested a review from a team as a code owner June 27, 2025 21:36
@KronsyC
Copy link
Author

KronsyC commented Jun 27, 2025

This fix appears to be working, but ive just discoverd that on this main branch custom dockerfiles as a whole are totally broken.

Backported this fix to the last stable release and its working

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.

Bug: Workspace name isnt properly validated for custom images
1 participant