opentofu/internal
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
..
copy deprecate helper/copy 2020-10-08 08:42:16 -04:00
depsfile internal: Fix lockfile constraint output for 1.2.* 2020-10-20 10:14:03 -04:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
earlyconfig remove LegacyProvider (#26433) 2020-10-05 08:33:49 -04:00
getproviders internal: Fix lockfile constraint output for 1.2.* 2020-10-20 10:14:03 -04:00
initwd deprecate helper/copy 2020-10-08 08:42:16 -04:00
modsdir internal/modsdir: Fix Dropped Error (#24600) 2020-06-04 10:26:26 -04:00
providercache command/init: Mention using the lock file for provider selection 2020-10-09 09:26:23 -07:00
replacefile internal/depsfile: Factor out our atomic file replacement logic 2020-10-14 08:01:19 -07:00
tfplugin5 Add support for provider metadata to modules. (#22583) 2020-03-05 16:53:24 -08:00
typeexpr configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00