terraform/command/cliconfig
Martin Atkins 30204ecded command/cliconfig: Allow development overrides for providers
For normal provider installation we want to associate each provider with
a selected version number and find a suitable package for that version
that conforms to the official hashes for that release.

Those requirements are very onerous for a provider developer currently
testing a not-yet-released build, though. To allow for that case this new
CLI configuration feature allows overriding specific providers to refer
to give local filesystem directories.

Any provider overridden in this way is not subject to the usual
restrictions about selected versions or checksum conformance, and
activating an override won't cause any changes to the selections recorded
in the lock file because it's intended to be a temporary setting for one
developer only.

This is, in a sense, a spiritual successor of an old capability we had to
override specific plugins in the CLI configuration file. There were
some vestiges of that left in the main package and CLI config package
but nothing has actually been honoring them for several versions now and
so this commit removes them to avoid confusion with the new mechanism.
2020-10-16 14:31:15 -07:00
..
testdata command/cliconfig: Allow development overrides for providers 2020-10-16 14:31:15 -07:00
cliconfig.go provider cache: log errors and validate dir exists (#24993) 2020-05-19 15:32:36 -04:00
cliconfig_test.go provider cache: log errors and validate dir exists (#24993) 2020-05-19 15:32:36 -04:00
config_unix.go internal/depsfile: Factor out our atomic file replacement logic 2020-10-14 08:01:19 -07:00
config_windows.go internal/depsfile: Factor out our atomic file replacement logic 2020-10-14 08:01:19 -07:00
credentials.go internal/depsfile: Factor out our atomic file replacement logic 2020-10-14 08:01:19 -07:00
credentials_test.go
provider_installation.go command/cliconfig: Allow development overrides for providers 2020-10-16 14:31:15 -07:00
provider_installation_test.go command/cliconfig: Allow development overrides for providers 2020-10-16 14:31:15 -07:00