mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2026-10-13 21:34:25 +00:00
[GH-ISSUE #157] v1.0.4: go vet ./device fails because TestWaitPool copies atomic.Uint32 #80
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-go#80
Loading…
Add table
Add a link
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?
Originally created by @autopeasant on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/157
Affected version
github.com/amnezia-vpn/amneziawg-go v1.0.41.26.4Minimal reproduction
From an unmodified v1.0.4 checkout:
Observed behavior
TestWaitPoolpasses theatomic.Uint32value itself tot.Errorf:Formatting the value copies the atomic wrapper, whose embedded
noCopymarker makes that operation invalid under thecopylocksanalyzer.Expected behavior
go vet ./deviceshould pass. The diagnostic should format the already-observed scalar instead: