Skip to content

fix: preserve env keys with dots not matching command args#324

Merged
innerr merged 1 commit into
mainfrom
fix/env-parser-dots-key
Feb 24, 2026
Merged

fix: preserve env keys with dots not matching command args#324
innerr merged 1 commit into
mainfrom
fix/env-parser-dots-key

Conversation

@innerr

@innerr innerr commented Feb 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixed a bug in env parser where keys not matching command args would cause parser to return early, dropping remaining env values
  • Extracted tryAddNonArgEnv helper function for adding non-arg env vars
  • Added test cases for env keys with dots (like tidbcloud-insight.cache-dir)

When parsing env key=value pairs, if a key is not recognized as a
command arg, the parser would return early and drop remaining env
values. Now it falls back to treating unrecognized keys as non-arg
env vars.
@innerr innerr merged commit efcfbd7 into main Feb 24, 2026
3 of 4 checks passed
@innerr innerr deleted the fix/env-parser-dots-key branch February 24, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant