-
Notifications
You must be signed in to change notification settings - Fork 47
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
crates under 3/l downloaded incorrectly #83
Comments
You can't serve the files directly without some rewrites, see the sample nginx config in the repo: https://github.com/panamax-rs/panamax/blob/master/nginx.sample.conf I'm not sure why the decision was made to have the on-disk layout differ from the served layout. I wanted to use panamax to update a mirror which is mounted into build tasks (so the crates base URL is a |
Oh shoot, I didn't realize the formats differed - the intention was to have them be the same format. I could've sworn the index used to be 3/(crate) rather than 3/(1st letter) /(crate). Ill try to get this fixed - sorry about that. |
Actually even with the rewrites in place, there seem to be issues with crates that have short names.
|
I replaced the rewrites with this and it seems to work:
The other rewrites, so far, seem unnecessary. Maybe needed for an older cargo version? |
This should be fixed as of 1.0.8. Feel free to reopen this issue if you're still having trouble. |
I've checked index and there is an index file under
/3/l/log
, but crates folder contains log crate under path3/log
which is not correctI've tried with dockerized version of latest commit on master
The text was updated successfully, but these errors were encountered: