-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Implement experimental registry HTTP API from RFC #8890
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
Closed
Closed
Changes from 59 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
ac37cc5
Lift make_dep_prefix so it can be shared
c92f34c
Implement registry HTTP API from RFC
37bd64d
Improve support for non-changelog HTTP registries
f04eee1
Share try_old_curl
6881d67
Tidy up significantly
c2b7ec7
Detect rfc+http as HTTP registry
e67ea79
Double-check anything that's not synchronized
4c1af67
Add more debug output
011e483
Handle directories that don't exist
ff86ee2
Allow empty lines in changelog
2220c19
A note about non-Range servers
3ec6f87
Add rudimentary testing for HTTP registry
184fa41
No changelog means no version means no cache
9527f00
Unify unknown and unsupported changelog states
572ceeb
More tests for HTTP registry
d9aed8a
Don't write JSON-encoded name to changelog
45dbbb7
All headers end with CRLF
3604da8
Don't overwrite last-updated if nothing changed
8f99f76
Adopt more tests from registry.rs
f9b1262
Push forward the greedy route
42453f5
Progress on greedy prefetching
5568cb6
Document fields
e29b21e
Boolean logic is hard
202258e
Fix interactions between prefetching and loads
acd3ee7
Give example crate for load source failure
b52740d
Make prefetch respect patches
5799fc8
Fix up expected output in path test
d0d4ccb
Improve docs for prefetching methods/types
e970a0c
Update tests to match new error messages
e1018d0
Fix overeager test fixing
8ccaf4f
Fix resolver-tests crate compile failure
9ad0ff6
Avoid UncanonicalizedIter during prefetch
6b1bd18
Keep better track of what has been downloaded
5d092de
Don't yield the same package many times
0e2ead6
New time format
f11440e
Avoid walking in circles
e1f96cc
Only allow HTTP registry under -Z http-registry
5345b83
Add prefetch progress tracking
cd7a553
Use Cargo.lock to seed prefetching
f97db19
Remove old note about pipelining
9a11d49
Only prefetch once per invocation
7535830
Fix tests to pass -Z flag and use 'nightly'
a385413
Fix more tests from hoisting prefetching phase
de13064
Use the right API def for resolver-tests
6c2e28f
Move to sparse+http and add index= support
15aa11f
Move RegistryData::load to &mut self
bad9d3c
Look for LAST_UPDATED in the right place
ee6abeb
Correct handling of 404s during prefetch
a9f80f8
Handle offline errors earlier
38ad840
Actually show a progress bar
508ffa6
Mention -Zhttp-registries in help output
517a3e2
Fix botched manual diff
c57c92c
Merge remote-tracking branch 'upstream/master' into http-registry
666895b
Better name for set of already-checked files
b41dfbb
Make sparse+ work in more places
3a71c4c
Keep iterating while there's work
165f01d
Don't fetch transitive dev-dependencies
1bcbc63
Add early top for dependency version walk
ced491a
Improve trace output and some comments
8098e60
Remove invalid optimization
3f746b3
Fetch config.json from the right directory
3a8b69d
Fix up alt_registry tests with registry+ prefix
7caae82
Merge remote-tracking branch 'upstream/master' into http-registry
fa296f0
Treat 403 as 404 from a privacy-sensitive server
88649de
Be more helpful about HTTP status code errors
bda120a
Remove the changelog optimization
7d1fef8
nits
cc87623
Avoid index updates if we can update just one file
c56c4d2
Avoid hitting assertion failures
7efa4da
All index paths should be lowercase
3c5c89b
Default to empty prefetch
a5e8b9f
Avoid extra indentation
a1383e0
Only be conditional on fields the server provided
5750fdf
Fix cut-off comment
e89e37c
Remove index files we get ~404 for
ad63b9d
Be more helpful about HTTP status code errors
8b8e3df
Spelling is hard
917f5d0
Assert we have valid utf-8 paths
cd5281d
Avoid duplicating crate download code
3382ddf
Avoid adding a new SourceId
7871824
Use masquerade_as_nightly
ee333d3
Suggest correct -Z name
f1f63cc
Make sparse+ an impl detail of RegistrySource
94ba59e
Add test for nightly-only
f9e35b3
Merge branch 'master' into http-registry
365e9f2
Do not prefetch w/o -Z http-registry
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.