-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(datasource/pypi): always fallback to try simple endpoints (#32024)
- Loading branch information
Showing
4 changed files
with
38 additions
and
66 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
lib/modules/datasource/pypi/__snapshots__/index.spec.ts.snap
This file contains 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This datasource uses the following logic to determine lookup URLs: | ||
|
||
- If the normalized registryUrl ends in `/simple/` or `/+simple/` then only the simple API will be tried | ||
- Otherwise, the JSON API will be tried first | ||
- If the JSON API returns a result, it will be used | ||
- If the JSON API throws an error (e.g. 403, 404) then the simple API will be tried |