-
Notifications
You must be signed in to change notification settings - Fork 254
Fix OS's environment variable inheritance #1963
Fix OS's environment variable inheritance #1963
Conversation
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, is there a way we can hand binaries to the OP in #1917 to have confirmation it addresses his issue?
Also PR is still a draft. |
@mat007 We don't have a proper way to hand a binary to contributor by now. What I can propose is to checkout and build it. |
Ah, we would need to use our fork of godotenv in compose-go, do we want a PR there first? |
replace don't apply on transitive dependencies, so this fix can't be applied on compose-go "only" |
Yes, we need it in both compose-go and compose-cli, but in this PR, if I understand correctly, compose-cli uses a fork of compose-go. I don’t think we want that, do we? |
I just made a PR on |
But can’t we use a replace in both projects? |
Oh right, no we can’t see golang/go#30354 |
@@ -19,7 +19,7 @@ require ( | |||
github.com/awslabs/goformation/v4 v4.15.6 | |||
github.com/buger/goterm v1.0.0 | |||
github.com/cnabio/cnab-to-oci v0.3.1-beta1 | |||
github.com/compose-spec/compose-go v0.0.0-20210722130045-6e1e1c2b26de | |||
github.com/compose-spec/compose-go v0.0.0-20210729053941-ef8509c7a5eb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be updated now that compose-spec/compose-go#165 has been merged.
Close that in favor of #2002 |
What I did
This is meant to be an intermediate a solution for OS inherited environment variables in https://github.com/joho/godotenv
This fix relies on a fork of https://github.com/joho/godotenv on my repository https://github.com/ulyssessouza/godotenv
Also in an alternative branch on compose-go to point to this fork and implement the changes needed in the file parsing.
Related issue
Resolves #1917