Closed
Description
Summary
Environment variables set in the debug config for Go programing not working as expected
Description
Steps to trigger the problem:
- I had specified in the $PROJECT/.zed/debug.json
[
{
"label": "Program cloudmeta",
"adapter": "Delve",
"program": "cmd/app.go",
"request": "launch",
"mode": "debug",
"args": ["-run", "cluster.meta.refresh"],
"env": {
"KSCTL_ENVIRONMENT": "prod",
}
}
]
- then in my go program I ran
os.Environ()
- There I couldn't see Any env with Prefix as
KSCTL_
Expected Behavior:
Actual Behavior:
Zed Version and System Specs
Zed: v0.191.4 (Zed)
OS: Linux Wayland fedora 41
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Plus Graphics (ICL GT2) || Intel open-source Mesa driver || Mesa 25.0.7