Skip to content
Discussion options

You must be logged in to vote

Adding to @cookesan — two details worth making explicit:

Auto-.gitignore: Poetry writes .poetry/.gitignore with * when it creates the project plugin cache, so .poetry/plugins/poetry.lock is excluded from version control automatically. You do not need a manual .gitignore entry for it

Pinning for CI reproducibility: pin the exact plugin version directly in pyproject.toml:

[tool.poetry.requires-plugins]
poetry-dynamic-versioning = "==1.4.1"   # exact pin for CI stability

With an exact pin, Poetry should install the same plugin version on fresh environments without committing the plugin lockfile

The plugin cache under .poetry/plugins is project-local and regenerated automatically when Poetry …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Spitfire1900
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants