Support "v" prefixes in prerelease module version constraints#2124
Conversation
|
Reminder for the PR assignee: If this is a user-visible change, please update the changelog as part of the PR. |
10afb44 to
4aff810
Compare
fcbf694 to
30595ea
Compare
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
…ints during module installation. Adds more tests. Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
…ersions fails. Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
7ee1a42 to
3e56ac3
Compare
apparentlymart
left a comment
There was a problem hiding this comment.
Thanks for working on this @AYM1607, and in particular for your patience while we worked through different possible approaches to fix it.
Although what we've ended up here is definitely not what we would've written if we were writing this code new today, I think it represents the best compromise to narrowly fix just the bug that was reported in #2117 while minimizing the risk of changing OpenTofu's interpretation of any other version constraint string.
Once this is merged (which I intend to do once the checks all show as passing) I will make a new issue to represent both the existing technical debt and the new technical debt we've accepted in this PR, so that we'll have a record of it and consider how we might make a more comprehensive improvement to this component in future.
Thanks again!
Due to some historical technical debt in this area we are intentionally accepting a rather hacky but narrowly-scoped solution to a bug that prevented selection of prerelease versions of modules when a version constraint was written with a "v" symbol before the version selection, such as in "=v1.0.0-beta1". This commit just records some commentary about the decision for the benefit of a future maintainer that is likely to wonder why this code is written the way it is, and (assuming GitHub outlives these comments) link back to the discussion that motivated it. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
3e56ac3 to
a8388ef
Compare
Resolves #2117
Target Release
1.9.0
Checklist
Go checklist