Skip to content

Fix upload name handling - #148

Merged
lucperkins merged 2 commits into
mainfrom
fix-upload-name-handling
Jun 26, 2024
Merged

lucperkins merged 2 commits into
mainfrom
fix-upload-name-handling

Conversation

@lucperkins

@lucperkins lucperkins commented Jun 26, 2024 •

Copy link
Copy Markdown
Member

This still feels a bit messy to me but it fixes the immediate problem, which is that we're currently allowing for upload names of the form a/b/c (notice two slashes instead of one), which FlakeHub cannot accept in the POST URL.

The major change here is that we no disallow more than one slash in an explicitly supplied upload name even when subgroup renaming is allowed. And if no explicit upload name is provided, we use {project_owner}/{project_name} instead of the repository name (we can't use the repository name directly for subgroups).

Comment thread src/push_context.rs Resolved
@lucperkins
lucperkins requested a review from cole-h June 26, 2024 17:46
@lucperkins
lucperkins merged commit ace2c95 into main Jun 26, 2024
@lucperkins
lucperkins deleted the fix-upload-name-handling branch June 26, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants