Fix build with profiling

This commit is contained in:
9seconds
2026-03-24 20:46:41 +01:00
parent de81ed565d
commit b47e13556e
2 changed files with 6 additions and 1 deletions
+6
View File
@@ -16,6 +16,12 @@ sources = ["**/*.go", "go.mod", "go.sum"]
outputs = ["mtg"] outputs = ["mtg"]
run = "go build" 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] [tasks.update]
description = "Update dependencies" description = "Update dependencies"
run = [ run = [
-1
View File
@@ -3,7 +3,6 @@
package main package main
import ( import (
"fmt"
"net" "net"
"net/http" "net/http"
_ "net/http/pprof" //nolint: gosec _ "net/http/pprof" //nolint: gosec