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

Dependency specification: inaccurate description of caret requirement #8991

Closed
1 task done
TanguyP opened this issue Feb 19, 2024 · 9 comments
Closed
1 task done

Dependency specification: inaccurate description of caret requirement #8991

TanguyP opened this issue Feb 19, 2024 · 9 comments
Labels
area/docs Documentation issues/improvements

Comments

@TanguyP
Copy link

TanguyP commented Feb 19, 2024

  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

On the Dependency specification page, the Caret requirements section reads:

An update is allowed if the new version number does not modify the left-most non-zero digit in the major, minor, patch grouping.

But this seems partly inaccurate, as it means that specifying ^0.2.3 as a requirement allows version 2.2.3 which has the same left-most non-zero digit i.e. 2 - but that's clearly not the case, as illustrated in the examples table further down, which mentions that a requirement of ^0.2.3 will allow versions >=0.2.3 <0.3.0.

Or maybe the person who wrote the above sentence meant that the digit and position of the left-most non-zero digit shouldn't change? In that case, I would argue that the phrasing can be improved.

@TanguyP TanguyP added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Feb 19, 2024
@dimbleby
Copy link
Contributor

The misunderstanding that you propose feels unlikely!

but if you have ideas to improve the docs then - by a very large margin - the best way to do that is to submit a merge request with the change you would like to see.

@ulgens
Copy link

ulgens commented Feb 20, 2024

I think the term we need here is "significant figures" https://en.wikipedia.org/wiki/Significant_figures "0" means different things for the logic if it's in "012.34" or "0.1234", but the referenced part of the doc mentions it like there is only one case.

@TanguyP
Copy link
Author

TanguyP commented Feb 20, 2024

I think the term we need here is "significant figures" https://en.wikipedia.org/wiki/Significant_figures "0" means different things for the logic if it's in "012.34" or "0.1234", but the referenced part of the doc mentions it like there is only one case.

Thanks! But I believe this comment belongs more in the PR, would you mind copying/moving it there (if you have sufficient permissions)? Then we can have a more extended discussion with a clearer format :)

@abn
Copy link
Member

abn commented Mar 1, 2024

I think this is overkill and suggestion in #8992 does not really make much of a dent in improving the status quo imho. I appreciate that the current version can be confusing, but I do think it gets the point across just fine.

And further, I think any concerns raised about the "confusion" is mitigated by the additional examples provided in the same line.

If instead we had specified the version string as ^0.1.13, poetry would update to 0.1.14 but not 0.2.0. 0.0.x is not considered compatible with any other version.

@radoering radoering closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2024
@ulgens
Copy link

ulgens commented Mar 2, 2024

@radoering Can you please add a short comment why this got closed? Thanks in advance.

@radoering
Copy link
Member

@ulgens
Copy link

ulgens commented Mar 2, 2024

Thanks but "this solution is not good enough" shouldn't be the reason to close an issue. It makes sense for the PR but please keep this open.

@abn
Copy link
Member

abn commented Mar 2, 2024

@ulgens the maintainers do not agree there is a need for this - that is enough reason

And honestly this is a nitpick issue and we do not agree there is value in spending cycles debating semantics.

As for why we do not agree there is a need for such a change, please see my comment above where I have clearly said the example after the concerned phrase clarifies that the OPs example is not the case.

@abn abn removed the status/triage This issue needs to be triaged label Mar 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants