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

Fix upload name handling #148

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Fix upload name handling #148

merged 2 commits into from
Jun 26, 2024

Conversation

lucperkins
Copy link
Member

@lucperkins lucperkins commented Jun 26, 2024

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).

src/push_context.rs Outdated Show resolved Hide resolved
@lucperkins lucperkins requested a review from cole-h June 26, 2024 17:46
@lucperkins lucperkins merged commit ace2c95 into main Jun 26, 2024
6 checks passed
@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