1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
goreleaser/pkg
Eng Zer Jun 73e59160de
test: use t.Setenv to set env vars (#4140)
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>
2023-06-25 09:54:10 -03:00
..
archive test: improve more tests (#4124) 2023-06-18 11:58:17 -03:00
build fix: many linting issues 2023-03-19 22:17:18 -03:00
config fix(winget): release notes should be optional 2023-06-25 05:15:17 +00:00
context test: use t.Setenv to set env vars (#4140) 2023-06-25 09:54:10 -03:00
defaults feat: winget support (#4081) 2023-06-14 23:59:55 -03:00
healthcheck fix(nix): hc should report nix-prefetch-url as a dependency 2023-06-17 23:23:14 +00:00