Closed ernestrc closed 2 years ago
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes
Have you signed the CLA already but the status is still pending? Recheck it.
Closing in favor of https://github.com/hashicorp/go-plugin/pull/163
Client-supplied environment variables should have priority over the current environment, but they're currently overwritten.
The go stdlib deduplicates by removing the first key value pairs in
Command.Env
when executing a command, so changing the order of how we append it fixes this problem.https://github.com/golang/go/blob/master/src/os/exec/exec.go#L158 https://github.com/golang/go/blob/master/src/os/exec/exec.go#L910