Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 39bfae4

Browse files
committed
Need to call ExpandEnv() if you want to expand env vars. This might not have worked before...
1 parent 6fa8a7d commit 39bfae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func setupEnv(internalAPIport string) error {
9494
environment["AWS_LAMBDA_RUNTIME_API"] += ":" + internalAPIport
9595

9696
for k, v := range environment {
97-
if err := os.Setenv(k, v); err != nil {
97+
if err := os.Setenv(k, os.ExpandEnv(v)); err != nil {
9898
return err
9999
}
100100
}

0 commit comments

Comments
 (0)