-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improve handling for hashing unknown packages #9556
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
eb59dc6
Improve handling for hashing unknown packages
jurre ecc2f72
Pass index url to hasher.py
robaiken 957a250
lint
robaiken 4052a33
Get hashes from private Python registries, not just PyPI
robaiken 435c4c8
revert file
robaiken d4b94b7
removed redundant line
robaiken fc6597e
lint
robaiken 7bcbbef
Merge branch 'main' into jurre/hash-private-packages
robaiken f40e885
removing old fixture file
robaiken 3672799
updated test to reflect actual error
robaiken fd8996d
Merge remote-tracking branch 'origin/jurre/hash-private-packages' int…
robaiken ace57b9
fixing issue from rubocop auto fix
robaiken 4eb2d9e
remove attr_reader
robaiken a9224af
Merge branch 'main' into jurre/hash-private-packages
robaiken 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 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 |
---|---|---|
|
@@ -15,3 +15,7 @@ indent_style = tab | |
|
||
[*.php] | ||
indent_size = 4 | ||
|
||
[*.py] | ||
indent_size = 4 | ||
max_line_length = 80 |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jurre: I think there is a problem with this 4th arg that is causing the issues seen in:
cryptography
; calling get_dependency_hash fails #10631In some cases, that arg ends up being
"/pypi/<package-name>/json"
(e.g."/pypi/zope-interface/json"
) which is not a full URL and causes an error when passed as is tohashin.get_package_hashes
inpython/helpers/lib/hasher.py
.https://pypi.org/pypi/zope-interface/json is a valid URL, so either the caller should provide the full URL, or some function down the line should concatenate that path to the domain to form a full URL before calling
hashin.get_package_hashes
.