Skip to content
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

Add a new FAQ for describing how to handle the case that some dependency happens to have the same version as the project version #819

Open
1 of 3 tasks
Lee-W opened this issue Aug 20, 2023 · 2 comments

Comments

@Lee-W
Copy link
Member

Lee-W commented Aug 20, 2023

Type

  • Content inaccurate
  • Content missing
  • Typo

URL

https://commitizen-tools.github.io/commitizen/faq/

Description

Add this section #496 (comment) to the FAQ page and add some links to other parts of the documentation

@Lee-W Lee-W changed the title Add a new FAQ for describing how to handle the case that some dependency happen to have the same version as the project version Add a new FAQ for describing how to handle the case that some dependency happens to have the same version as the project version Aug 20, 2023
@kasiagauza
Copy link

According to the comment #469, setting the version_provider to "poetry" in the tool.commitizen block should be enough to change the version value in the tool.poetry, but it does not work.

The commitizen documentation is unclear. In two places it mentions that the version field is only required if one uses the commitizen provider, see:

...but, if I use just the "poetry" version provider, then I get the following error:

poetry run cz bump --dry-run
[NO_VERSION_SPECIFIED]
Check if current version is specified in config file, like: (...)

When I add version value to the tool.commitizen block, and keep the poetry provider, then bump updates only the version field in the commitizen block.

So either the poetry provider is not working, or the documentation should be improved (or both).

@woile
Copy link
Member

woile commented Aug 24, 2023

Your understanding is correct. version is only for the commitizen provider. Would you mind opening a new bug ticket with more information so we can take care of it. A sample of your poetry config and a commitizen config would be really helpful to reproduce.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants