runtime: cgo Unix C code can't modify environment variables for Go #27693
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?1.11
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux amd64
What did you do?
Because of envOnce and copyenv in env_unix.go, linked non-Go programs can't set environment variables that are visible to Go code.
This is probably WAI, but it's surprising when embedding and could use a mention somewhere.
What did you see instead?
"1 1 3" instead of "1 2 3".
The text was updated successfully, but these errors were encountered: