-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
reuse url encoding from url
crate, don't use separate percent-encoding
#11750
Conversation
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
There is similar one use with Lines 347 to 353 in ddfe87f
and Lines 509 to 513 in ddfe87f
but i don't have good (and simple) idea what to do. |
Thanks! The example in the @bors r+ |
☀️ Test successful - checks-actions |
Are there tests for the encoding of |
No, i don't see tests for that.
but here the diff (For that usecase, new behavior for is actually more accurate?)
|
crates.io can handle both encodings of I think there's a copy-paste error in your diff. Searching for "hello f" produces
|
Yes.
I think you have it backwards. https://static.crates.io/crates/libgit2-sys/libgit2-sys-0.12.25+1.3.0.crate works but https://static.crates.io/crates/libgit2-sys/libgit2-sys-0.12.25%2B1.3.0.crate dose not. This is a bug in crate.io, or really a bug in s3, but we can not start hitting it. |
15 commits in 17b3d0de0897e1c6b8ca347bd39f850bb0a5b9f6..9d5b32f503fc099c4064298465add14d4bce11e6 2023-02-17 19:45:09 +0000 to 2023-02-22 23:04:16 +0000 - refactor(job_queue): docs and move types around (rust-lang/cargo#11758) - Scrub more of the test environment (rust-lang/cargo#11757) - Make more reads of environment variables go through the `Config` (rust-lang/cargo#11754) - Revert "Update curl-sys to use libcurl 7.88.1" (rust-lang/cargo#11755) - use consistent case (rust-lang/cargo#11748) - Switch some tests from `build` to `check` (rust-lang/cargo#11725) - Fix typo in sparse-registry warning message (rust-lang/cargo#11753) - reuse url encoding from `url` crate, don't use separate `percent-encoding` (rust-lang/cargo#11750) - Read environment variables through `Config` instead of `std::env::var(_os)` (rust-lang/cargo#11727) - Update curl-sys to use libcurl 7.88.1 (rust-lang/cargo#11749) - mdman: update pretty_assertions to reduce deps (rust-lang/cargo#11747) - Cleanup tests (rust-lang/cargo#11745) - Enhance help texts of position args (rust-lang/cargo#11740) - Fix typo (rust-lang/cargo#11741) - Update comment about cargo-ok (rust-lang/cargo#11724)
Update cargo 15 commits in 17b3d0de0897e1c6b8ca347bd39f850bb0a5b9f6..9d5b32f503fc099c4064298465add14d4bce11e6 2023-02-17 19:45:09 +0000 to 2023-02-22 23:04:16 +0000 - refactor(job_queue): docs and move types around (rust-lang/cargo#11758) - Scrub more of the test environment (rust-lang/cargo#11757) - Make more reads of environment variables go through the `Config` (rust-lang/cargo#11754) - Revert "Update curl-sys to use libcurl 7.88.1" (rust-lang/cargo#11755) - use consistent case (rust-lang/cargo#11748) - Switch some tests from `build` to `check` (rust-lang/cargo#11725) - Fix typo in sparse-registry warning message (rust-lang/cargo#11753) - reuse url encoding from `url` crate, don't use separate `percent-encoding` (rust-lang/cargo#11750) - Read environment variables through `Config` instead of `std::env::var(_os)` (rust-lang/cargo#11727) - Update curl-sys to use libcurl 7.88.1 (rust-lang/cargo#11749) - mdman: update pretty_assertions to reduce deps (rust-lang/cargo#11747) - Cleanup tests (rust-lang/cargo#11745) - Enhance help texts of position args (rust-lang/cargo#11740) - Fix typo (rust-lang/cargo#11741) - Update comment about cargo-ok (rust-lang/cargo#11724)
I did not notice that this was just for search. Please ignore my rant. |
I think it's a bug in Cargo & crates.io. We should be encoding the |
FWIW I looked into the situation today. I agree that it would be a breaking change for cargo, but I don't agree that it is a bug in cargo. the myth that I've started a more detailed write-up today, but it's still WIP. |
for cross-referencing, I've posted my investigation results at rust-lang/crates.io#4891 (comment) :) |
Reuse encoding from
url
, don't use separatepercent-encoding
.