python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / applications / networking / cluster / terraform / provider-path-0_15.patch
blob9e46eebd1b4b5b8054c6d352c89d0227fcfb305a
1 diff -Naur terraform.old/internal/command/init.go terraform.new/internal/command/init.go
2 --- terraform.old/internal/command/init.go
3 +++ terraform.new/internal/command/init.go
4 @@ -7,6 +7,7 @@
5 "context"
6 "errors"
7 "fmt"
8 + "os"
9 "log"
10 "reflect"
11 "sort"
12 @@ -79,6 +80,11 @@
13 c.migrateState = true
16 + val, ok := os.LookupEnv("NIX_TERRAFORM_PLUGIN_DIR")
17 + if ok {
18 + initArgs.PluginPath = append(initArgs.PluginPath, val)
19 + }
21 if len(initArgs.PluginPath) > 0 {
22 c.pluginPath = initArgs.PluginPath