terraform/plugin/discovery
Martin Atkins 4ba20f9c1c command init: show suggested constraints for unconstrained providers
When running "terraform init" with providers that are unconstrained, we
will now produce information to help the user update configuration to
constrain for the particular providers that were chosen, to prevent
inadvertently drifting onto a newer major release that might contain
breaking changes.

A ~> constraint is used here because pinning to a single specific version
is expected to create dependency hell when using child modules. By using
this constraint mode, which allows minor version upgrades, we avoid the
need for users to constantly adjust version constraints across many
modules, but make major version upgrades still be opt-in.

Any constraint at all in the configuration will prevent the display of
these suggestions, so users are free to use stronger or weaker constraints
if desired, ignoring the recommendation.
2017-06-09 14:03:59 -07:00
..
test-fixtures plugin/discovery: find plugins in a given set of directories 2017-06-09 14:03:59 -07:00
find.go plugin/discovery: handle the -Xn suffix used by auto-installed plugins 2017-06-09 14:03:59 -07:00
find_test.go plugin/discovery: handle the -Xn suffix used by auto-installed plugins 2017-06-09 14:03:59 -07:00
get.go clean up plugin fetching 2017-06-09 14:03:59 -07:00
get_test.go clean up plugin fetching 2017-06-09 14:03:59 -07:00
meta.go plugin/discovery: use go-version instead of semver 2017-06-09 14:03:59 -07:00
meta_set.go rename some Constraints methods per code review 2017-06-09 14:03:59 -07:00
meta_set_test.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
meta_test.go plugin/discovery: SHA256() method to get the hash of each plugin 2017-06-09 14:03:59 -07:00
requirements.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
requirements_test.go plugin/discovery: PluginRequirements can specify SHA256 digests 2017-06-09 14:03:59 -07:00
version.go command init: show suggested constraints for unconstrained providers 2017-06-09 14:03:59 -07:00
version_set.go command init: show suggested constraints for unconstrained providers 2017-06-09 14:03:59 -07:00
version_set_test.go rename some Constraints methods per code review 2017-06-09 14:03:59 -07:00
version_test.go Add Versions.Sort 2017-06-09 14:03:59 -07:00