mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: do not fatal on automaxprocs error (#3946)
This might fail on windows/wsl (see https://github.com/uber-go/automaxprocs/issues/65), and its not too bad if it fails, actually, so, let's just warn the error instead of exiting 1 closes #3945 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
3c7a63979c
commit
6afe717dc9
3
main.go
3
main.go
@ -29,7 +29,8 @@ func init() {
|
||||
// automatically set GOMAXPROCS to match available CPUs.
|
||||
// GOMAXPROCS will be used as the default value for the --parallelism flag.
|
||||
if _, err := maxprocs.Set(); err != nil {
|
||||
log.WithError(err).Fatal("failed to set GOMAXPROCS")
|
||||
// might fail on WSL...
|
||||
log.WithError(err).Warn("failed to set GOMAXPROCS")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user