Calculate and store hash for url dependencies#7121
Calculate and store hash for url dependencies#7121radoering merged 5 commits intopython-poetry:masterfrom
Conversation
|
thanks! I don't think that attaching the
I would suggest that the method on the file dependency be deprecated or removed, and you replace it with a standalone utility function that just takes a Also you could put that utility in poetry proper rather than poetry-core, which will allow you to make the unit tests work without having cross-repository problems to work through |
|
Okay, I moved The tests still fail since the lockfile that's generated has the hashes in it and doesn't match the test fixtures. Is there a recommended way to generate the new fixture test files? |
With a grand total of four failures it shouldn't be very tedious just to fix up those testcases manually,
|
349cb5a to
fc7d730
Compare
|
Fixed test failures and added in tests for the new |
3de5f84 to
8c2113c
Compare
This performs the same hashing process as is done on file dependencies, for url dependencies. This requires a change in `poetry-core` to work.
These tests were copied over from 'poetry-core' and updated to work here.
Don't use FileDependency when validating the archive hash in executor, just compute the hash with the archive path directly.
8c2113c to
3858bf0
Compare
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This performs the same hashing process as is done on file dependencies, for url dependencies. This requires python-poetry/poetry-core#535 to work.
I haven't updated the tests yet as I would first like to get feedback from the maintainers.
Pull Request Check List
Resolves: #7122