Revert "Make GOMAXPROCS CPU limit aware" - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0106cf1a6db73f76b7f26744fcee6ce7f41cdf07
(DIR) parent 59050f97f637b7cb423e6f5b63e36c1ea973c183
(HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 17 May 2023 21:01:52 +0200
Revert "Make GOMAXPROCS CPU limit aware"
I shouldn't have merged this without running the tests.
This libray logs to stderr on init, which is a no go for us.
Re. test failure:
```
[stderr]
2023/05/17 18:21:04 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
```
This reverts commit 59050f97f637b7cb423e6f5b63e36c1ea973c183.
Diffstat:
M go.mod | 1 -
M go.sum | 2 --
M main.go | 3 ---
3 files changed, 0 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/go.mod b/go.mod
@@ -60,7 +60,6 @@ require (
github.com/tdewolff/parse/v2 v2.6.5
github.com/yuin/goldmark v1.5.4
go.uber.org/atomic v1.10.0
- go.uber.org/automaxprocs v1.5.2
gocloud.dev v0.24.0
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326
golang.org/x/image v0.5.0
(DIR) diff --git a/go.sum b/go.sum
@@ -574,8 +574,6 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
-go.uber.org/automaxprocs v1.5.2 h1:2LxUOGiR3O6tw8ui5sZa2LAaHnsviZdVOUZw4fvbnME=
-go.uber.org/automaxprocs v1.5.2/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0=
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
(DIR) diff --git a/main.go b/main.go
@@ -18,9 +18,6 @@ import (
"os"
"github.com/gohugoio/hugo/commands"
-
- // default GOMAXPROCS to be CPU limit aware, still respecting GOMAXPROCS env
- _ "go.uber.org/automaxprocs"
)
func main() {