mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-03 20:39:32 -05:00
Add Go workspace for multi-module development.
This allows nested modules to reference the root prometheus/prometheus module from the local filesystem instead of downloading versioned releases. Improves development workflow and ensures CI tests against current code. Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
This commit is contained in:
parent
6dc6f73261
commit
b8b55d0f43
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -26,6 +26,7 @@ npm_licenses.tar.bz2
|
|||
|
||||
/vendor
|
||||
/.build
|
||||
/go.work.sum
|
||||
|
||||
/**/node_modules
|
||||
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -194,6 +194,8 @@ GO_SUBMODULE_DIRS := documentation/examples/remote_storage internal/tools web/ui
|
|||
.PHONY: update-all-go-deps
|
||||
update-all-go-deps: update-go-deps
|
||||
$(foreach dir,$(GO_SUBMODULE_DIRS),$(MAKE) update-go-deps-in-dir DIR=$(dir);)
|
||||
@echo ">> syncing Go workspace"
|
||||
@$(GO) work sync
|
||||
|
||||
.PHONY: update-go-deps-in-dir
|
||||
update-go-deps-in-dir:
|
||||
|
|
|
|||
8
go.work
Normal file
8
go.work
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
go 1.24.9
|
||||
|
||||
use (
|
||||
.
|
||||
./documentation/examples/remote_storage
|
||||
./internal/tools
|
||||
./web/ui/mantine-ui/src/promql/tools
|
||||
)
|
||||
Loading…
Reference in a new issue