Files
opentf/command
Alisdair McDiarmid 9576a5b2d8 internal: Fix lockfile constraint output for 1.2.*
If a configuration requires a partial provider version (with some parts
unspecified), Terraform considers this as a constrained-to-zero version.
For example, a version constraint of 1.2 will result in an attempt to
install version 1.2.0, even if 1.2.1 is available.

When writing the dependency locks file, we previously would write 1.2.*,
as this is the in-memory representation of 1.2. This would then cause an
error on re-reading the locks file, as this is not a valid constraint
format.

Instead, we now explicitly convert the constraint to its zero-filled
representation before writing the locks file. This ensures that it
correctly round-trips.

Because this change is made in getproviders.VersionConstraintsString, it
also affects the output of the providers sub-command.
2020-10-20 10:14:03 -04:00
..
2015-04-29 13:07:13 -05:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-05 08:33:49 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-07 11:00:06 -04:00
2019-07-18 16:11:41 -04:00
2020-10-07 11:00:06 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2018-10-16 18:24:47 -07:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-07 11:00:06 -04:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2020-10-05 08:33:49 -04:00
2020-10-08 08:42:16 -04:00