mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
73e59160de
We have been using `t.Setenv` is most of our tests. This PR replaces the remaining `os.Setenv` with `t.Setenv`. Reference: https://pkg.go.dev/testing#T.Setenv ```go func TestFoo(t *testing.T) { // before os.Setenv(key, "new value") defer os.Unsetenv(key) // after t.Setenv(key, "new value") } ``` --------- Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
---|---|---|
.. | ||
archive.go | ||
docker.go | ||
git_test.go | ||
git.go | ||
log.go | ||
mktemp_test.go | ||
mktemp.go | ||
path_test.go | ||
path.go | ||
skip_test.go | ||
skip.go | ||
tmpl.go |