Files
grafana/go.work
jev forsberg 3574f03e54 Dependencies: Bump Go to v1.24.5
Resolves enterprise build failures caused by dependency cascade requiring Go 1.24.5.
Updates all workspace modules and build configuration for consistency.

- Update go.work, go.mod, and 29 workspace modules from Go 1.24.4 to Go 1.24.5
- Update Dockerfile: golang:1.24.4-alpine → golang:1.24.5-alpine
- Update Makefile and drone variables to Go 1.24.5
- Aligns with main branch (commit 52f6104230)
- Prevents GOTOOLCHAIN=local build failures in CI environments
- Tested: go mod tidy, workspace sync, and enterprise builds all work

Fixes issue where enterprise drone builds failed with:
'go: go.work requires go >= 1.24.5 (running go 1.24.4; GOTOOLCHAIN=local)'

Related to release-12.0.3 tagging requirements.
2025-07-23 10:39:46 -06:00

43 lines
1.3 KiB
Plaintext

go 1.24.5
// The `skip:golangci-lint` comment tag is used to exclude the package from the `golangci-lint` GitHub Action.
// The module at the root of the repo (`.`) is excluded because ./pkg/... is included manually in the `golangci-lint` configuration.
use (
. // skip:golangci-lint
./.citools/bra
./.citools/cog
./.citools/cue
./.citools/golangci-lint
./.citools/jb
./.citools/lefthook
./.citools/swagger
./apps/advisor
./apps/alerting/notifications
./apps/dashboard
./apps/folder
./apps/investigations
./apps/playlist
./pkg/aggregator
./pkg/apimachinery
./pkg/apis/secret // @grafana/grafana-operator-experience-squad
./pkg/apiserver
./pkg/build
./pkg/build/wire // skip:golangci-lint
./pkg/codegen
./pkg/plugins/codegen
./pkg/promlib
./pkg/semconv
./pkg/storage/unified/apistore
./pkg/storage/unified/resource
./pkg/util/xorm // skip:golangci-lint
)
// when we release xorm we would like to release it like github.com/grafana/grafana/pkg/util/xorm
// but we don't want to change all the imports. so we use replace to handle this situation
replace xorm.io/xorm => ./pkg/util/xorm
replace github.com/prometheus/alertmanager => github.com/grafana/prometheus-alertmanager v0.25.1-0.20250331083058-4563aec7a975
replace github.com/crewjam/saml => github.com/grafana/saml v0.4.15-0.20240917091248-ae3bbdad8a56