Conf tags containing double quotes produce malformed struct tags #2
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
residual/config#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
core/tag.go:179—buildShadowTypeinjects conf tag values directly into toml/yaml/json struct tags viafmt.Sprintf:If a conf tag value contains a double quote (e.g.
conf:"foo\"bar"), the generated tag will be malformed and the decoder will either error or silently misparse.Current state
This is an intentional incompatibility. Residual conf tags never contain quotes, and supporting them would require escaping logic that adds complexity for no practical benefit. The limitation is documented in the code comment.
Labels
proj-config-lib, tier-2-medium