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

feat: uploading to prefix.dev #432

Merged
merged 6 commits into from
Dec 21, 2023
Merged

feat: uploading to prefix.dev #432

merged 6 commits into from
Dec 21, 2023

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Dec 19, 2023

No description provided.

src/upload.rs Outdated
println!("Upload successful!");
} else {
println!("Upload failed!");
if response.status() == 401 {
Copy link
Contributor

Choose a reason for hiding this comment

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

@wolfv
Copy link
Member Author

wolfv commented Dec 21, 2023

@0xbe7a I refactored the code a little bit and added progress bars to each of the methods. Do you think you can test this for quetz & artifactory?

This also allows to put more than a single package for uploading, e.g.

rattler-build upload prefix --channel my-test *.conda

src/upload.rs Outdated
let index_json = IndexJson::from_package_directory(package_dir.path()).into_diagnostic()?;
let subdir = index_json
.subdir
.ok_or_else(|| miette::miette!("index.json of the package has no subdirectory. Cannot determine which directory to upload to"))?;
Copy link
Contributor

@0xbe7a 0xbe7a Dec 21, 2023

Choose a reason for hiding this comment

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

We should include the package name in the error message

@0xbe7a
Copy link
Contributor

0xbe7a commented Dec 21, 2023

Looks good, i will test the Quetz and Artifactory upload later today

@wolfv
Copy link
Member Author

wolfv commented Dec 21, 2023

OK, let me know how it goes and then I'll merge :)

@0xbe7a
Copy link
Contributor

0xbe7a commented Dec 21, 2023

Works as advertised, ready to merge! 🤠

@wolfv wolfv merged commit b6313f8 into prefix-dev:main Dec 21, 2023
22 checks passed
@wolfv wolfv deleted the prefix-uplaod branch December 21, 2023 23:12
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.

2 participants