Skip to content

exclude hashes when exporting VCS requirements#55

Merged
micmurawski merged 4 commits intomicmurawski:mainfrom
bruceduhamel:fix/vcs-urls
Sep 15, 2025
Merged

exclude hashes when exporting VCS requirements#55
micmurawski merged 4 commits intomicmurawski:mainfrom
bruceduhamel:fix/vcs-urls

Conversation

@bruceduhamel
Copy link
Contributor

@bruceduhamel bruceduhamel commented Sep 15, 2025

This should address this issue where the plugin fails to build poetry projects with dependencies installed via VCS urls such as git+ssh.

The nature of the issue is that the plugin includes a custom exporter for dumping poetry dependencies to a requirements.txt file. This file is built with hashes which allow pip to ensure the same code that the requirements.txt file was built from is consistently used. The plugin then utilizes pip to install those dependencies in the generated requirements.txt file but that command fails because pip is unable to verify the hashes for VCS urls.

The fix works by excluding hashes for dependencies installed via VCS or other URLs.

@bruceduhamel bruceduhamel changed the title exclude hashes when exporting requirements because they cause pip to fail to install packages from VCS urls exclude hashes when exporting VCS requirements Sep 15, 2025
Copy link
Owner

@micmurawski micmurawski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bruceduhamel Thank you for your contribution :)
Can you just patch version to 2.1.1? It's in pyproject.toml

Then I will merge and pipeline should make a release.

@bruceduhamel bruceduhamel reopened this Sep 15, 2025
@micmurawski micmurawski merged commit 758a4b1 into micmurawski:main Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GitHub library dependencies] ERROR: Can't verify hashes for these requirements because we don't have a way to hash version control repositories

2 participants