From 222622530999b804defe46a1fcb5b442d2c35dfb Mon Sep 17 00:00:00 2001 From: Andres Martinez Gotor Date: Tue, 15 Oct 2024 15:40:51 +0200 Subject: [PATCH] Chore: Avoid update-workspace when watching go files (#94716) --- .bra.toml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.bra.toml b/.bra.toml index b32010204b6..6dc5907da11 100644 --- a/.bra.toml +++ b/.bra.toml @@ -16,7 +16,7 @@ watch_exts = [".go", ".ini", ".toml", ".template.html"] ignore_files = [".*_gen.go"] build_delay = 1500 cmds = [ - ["GO_BUILD_DEV=1", "make", "build-go"], + ["GO_BUILD_DEV=1", "make", "build-go-fast"], ["make", "gen-jsonnet"], ["./bin/grafana", "server", "-profile", "-profile-addr=127.0.0.1", "-profile-port=6000", "-profile-block-rate=1", "-profile-mutex-rate=5", "-packaging=dev", "cfg:app_mode=development"] ] diff --git a/Makefile b/Makefile index 9c8f178a3d9..bd7cf324029 100644 --- a/Makefile +++ b/Makefile @@ -180,6 +180,10 @@ update-workspace: .PHONY: build-go build-go: gen-go update-workspace ## Build all Go binaries. + @echo "build go files with updated workspace" + $(GO) run build.go $(GO_BUILD_FLAGS) build + +build-go-fast: gen-go ## Build all Go binaries. @echo "build go files" $(GO) run build.go $(GO_BUILD_FLAGS) build