mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
command: remove Meta.forceProviderSHA256s
This was added with the idea of using it to override the SHA256 hashes to match those hypothetically stored in a plan, but we already have a mechanism elsewhere for populating context fields from plan fields, so this is not actually necessary.
This commit is contained in:
parent
9aae06db97
commit
4571a16b15
@ -50,11 +50,6 @@ type Meta struct {
|
|||||||
// Override certain behavior for tests within this package
|
// Override certain behavior for tests within this package
|
||||||
testingOverrides *testingOverrides
|
testingOverrides *testingOverrides
|
||||||
|
|
||||||
// Override the set of provider plugin SHA256 digests we expect.
|
|
||||||
// If this is nil we will instead read from the provider lock file
|
|
||||||
// when setting up ContextOpts.
|
|
||||||
forceProviderSHA256s map[string][]byte
|
|
||||||
|
|
||||||
//----------------------------------------------------------
|
//----------------------------------------------------------
|
||||||
// Private: do not set these
|
// Private: do not set these
|
||||||
//----------------------------------------------------------
|
//----------------------------------------------------------
|
||||||
@ -249,11 +244,7 @@ func (m *Meta) contextOpts() *terraform.ContextOpts {
|
|||||||
opts.Provisioners = m.provisionerFactories()
|
opts.Provisioners = m.provisionerFactories()
|
||||||
}
|
}
|
||||||
|
|
||||||
if m.forceProviderSHA256s != nil {
|
opts.ProviderSHA256s = m.providerPluginsLock().Read()
|
||||||
opts.ProviderSHA256s = m.forceProviderSHA256s
|
|
||||||
} else {
|
|
||||||
opts.ProviderSHA256s = m.providerPluginsLock().Read()
|
|
||||||
}
|
|
||||||
|
|
||||||
opts.Meta = &terraform.ContextMeta{
|
opts.Meta = &terraform.ContextMeta{
|
||||||
Env: m.Env(),
|
Env: m.Env(),
|
||||||
|
Loading…
Reference in New Issue
Block a user