1
0
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:
Carlos Alexandro Becker 2023-04-17 21:10:09 -03:00 committed by GitHub
parent 3c7a63979c
commit 6afe717dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
}
}