Skip to content

go: Write envFile properties back to env config - #34300

Merged
P1n3appl3 merged 1 commit into
zed-industries:mainfrom
Spissable:fix-go-debugger-envFile
Jul 11, 2025
Merged

go: Write envFile properties back to env config#34300
P1n3appl3 merged 1 commit into
zed-industries:mainfrom
Spissable:fix-go-debugger-envFile

Conversation

@Spissable

Copy link
Copy Markdown
Contributor

Closes #32984

Note that while #33666 did the reading of the envFile just fine, the read values were never passed along. This was mentioned by this comment and also confirmed by myself.

With the changes here, I successfully debugged a project of mine and all the environment variables from my .env were present.

Release Notes:

  • The Go debugger now reads AND uses the envFile setting.

@cla-bot

cla-bot Bot commented Jul 11, 2025

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @Spissable on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Spissable

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 11, 2025
@cla-bot

cla-bot Bot commented Jul 11, 2025

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@Spissable Spissable changed the title fix: set write envFile properties back to env config fix: write envFile properties back to env config Jul 11, 2025
@maxdeviant maxdeviant changed the title fix: write envFile properties back to env config go: Write envFile properties back to env config Jul 11, 2025
@P1n3appl3

Copy link
Copy Markdown
Contributor

Oops sorry about that, thanks for plumbing those envs the rest of the way through.

@P1n3appl3
P1n3appl3 enabled auto-merge (squash) July 11, 2025 18:13
@P1n3appl3
P1n3appl3 merged commit fbead09 into zed-industries:main Jul 11, 2025
@Spissable
Spissable deleted the fix-go-debugger-envFile branch August 23, 2025 10:09
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…4300)

Closes zed-industries#32984

Note that while zed-industries#33666 did the
reading of the `envFile` just fine, the read values were never passed
along. This was mentioned by [this
comment](zed-industries#33666 (comment))
and also confirmed by myself.

With the changes here, I successfully debugged a project of mine and all
the environment variables from my `.env` were present.

Release Notes:

- Fix Go debugger ignoring env vars from the envFile setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugger: delve ignores envFile setting

2 participants