Skip to content

fix(leaf): preserve quoted secrets across dotenv round trips - #4

Merged
taigrr merged 1 commit into
masterfrom
cd/round5-20261022
Oct 23, 2026
Merged

taigrr merged 1 commit into
masterfrom
cd/round5-20261022

Conversation

@taigrr

@taigrr taigrr commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve double quotes and backslashes when serializing and parsing generated dotenv files.
  • Decode only escaped quotes/backslashes inside double quotes; preserve unknown escape sequences and literal single-quoted content.
  • Cover eight values in both managed and ignored blocks, plus single-quoted backslashes. Quote-containing cases fail on the base branch.

Validation

  • go generate ./... before and after changes
  • go test -race ./... (baseline and final)
  • go vet ./...
  • staticcheck ./...
  • go build ./...
  • goimports and git diff --check

No dependency changes. Multiline dotenv support is outside this focused fix.

@taigrr
taigrr merged commit b6edc70 into master Oct 23, 2026
1 check passed
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