Skip to content
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

Sanitize ref name before uploading artifact #997

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

Conversation

balins
Copy link
Contributor

@balins balins commented Feb 28, 2025

While I didn't find any information in the docs, it seems that artifact names have some restrictions. This PR sanitizes the ref name before using it in artifact's name to avoid errors when packaging the extension from refs containing '', '/', "', ':', '<', '>', '|', '*', or '?' by replacing these characters with -.

@balins balins self-assigned this Feb 28, 2025
Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radon-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:20pm

@balins balins force-pushed the jb/sanitize-artifact-name-when-packaging-extension branch from 2dbd7f2 to 9eab85e Compare February 28, 2025 14:20
@balins balins requested review from kmagiera and jwajgelt February 28, 2025 15:52
Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could just use the name that the Vsix package has? The package scripts outputs a file that gets the version number in it which should be enough

@balins
Copy link
Contributor Author

balins commented Mar 3, 2025

@kmagiera We will have possibly multiple builds per one version number, so I'd rather keep artifact names unique

Copy link
Collaborator

@filip131311 filip131311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

3 participants