aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorGravatar Ben Kochie <superq@gmail.com> 2023-05-03 19:53:48 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-03 13:53:48 -0400
commit3f6dfbd2a7b21bf52b599d6287e4cc9ead01975a (patch)
tree7bfcb0c68c8aa1f8daa07792af547feef06a26cc /go.mod
parent604a902e2c7e0317aecaa3666124079c75a31573 (diff)
downloadcoredns-3f6dfbd2a7b21bf52b599d6287e4cc9ead01975a.tar.gz
coredns-3f6dfbd2a7b21bf52b599d6287e4cc9ead01975a.tar.zst
coredns-3f6dfbd2a7b21bf52b599d6287e4cc9ead01975a.zip
Fix temp file close error (#6068)
Avoid Go 1.20 test error by not attempting to close the testing temp file unless there was an error in Read(). * Use a CreateTemp() to create unique test files. * Defer the deletion of the temp file. Woarkaround for: https://github.com/golang/go/issues/59938 Signed-off-by: SuperQ <superq@gmail.com>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions