mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Fix build with profiling
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user