Merge pull request #401 from 9seconds/fix-prof

Fix build with profiling
This commit is contained in:
Sergei Arkhipov
2026-03-24 20:50:41 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+6
View File
@@ -16,6 +16,12 @@ sources = ["**/*.go", "go.mod", "go.sum"]
outputs = ["mtg"]
run = "go build"
[tasks."build:prof"]
description = "Build binary with profiling enabled"
sources = ["**/*.go", "go.mod", "go.sum"]
outputs = ["mtg"]
run = "go build -tags prof"
[tasks.update]
description = "Update dependencies"
run = [
-1
View File
@@ -3,7 +3,6 @@
package main
import (
"fmt"
"net"
"net/http"
_ "net/http/pprof" //nolint: gosec