prometheus / prometheus/alertmanager
notify.DeepCopyWithTemplate edge cases
Open
@TheMeier is already working on this.
Since Feb 13, 2026.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 2.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 61
Description
What did you do?
Input like "{}:{alertname=\"test1\"}" trips up notify.DeepCopyWithTemplate
What did you expect to see?
passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate to just return the string
What did you see instead? Under which circumstances?
passing "{}:{alertname=\"test1\"}" into notify.DeepCopyWithTemplate returns interface{} nil
System information
Irrelevant
Alertmanager version
current main branch
Alertmanager configuration file
Irrelevant
Prometheus version
Irrelevant
Prometheus configuration file
Irrelevant
Logs
Irrelevant
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.