Files
grafana/go.work
T
6386390a13 OpenFeature: Extract shared OpenFeature setup code into a module (#118389)
* Extract shared OpenFeature setup code into a module

Include into module:
- HTTP client with optional token exchange authentication
- Support for OFREP and Grafana features service providers

* Go mod tidy

* Update .github/CODEOWNERS

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* Update pkg/infra/features/provider.go

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* Update pkg/infra/features/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply review feedback

* Refactor feature management to use pkg/infra/features  module

Changes:
- Simplify openfeature.go by using features.InitOpenFeature()
- Extract token exchange setup to use features.CreateAuthenticatedHTTPClient()
- Update tests to use new infrastructure
- Clean up redundant middleware and client creation code

* Update workspace

* Fix lint

* Replage go-feature-flag provider with OFREP one

 - Deleted features_service_provider.go — the go-feature-flag SDK provider is gone                                           - createRemoteProvider in featuremgmt now uses features.NewOFREPProvider for both FeaturesServiceProviderType and OFREPProviderType
- Update tests

* Update workspace

* Revert workspace update noise from submodule go.mod/go.sum files

* Run make update-workspace

* make gen-apps

* Cleanup attempt

* make gen-apps

* Run go work sync after merging main

* Make gen-apps

---------

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 16:05:47 +01:00

47 lines
1.2 KiB
Plaintext

go 1.25.7
// 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
./apps/advisor
./apps/alerting/alertenrichment
./apps/alerting/historian
./apps/alerting/notifications
./apps/alerting/rules
./apps/annotation
./apps/collections
./apps/correlations
./apps/dashboard
./apps/dashvalidator
./apps/example
./apps/folder
./apps/iam
./apps/logsdrilldown
./apps/playlist
./apps/plugins
./apps/preferences
./apps/provisioning
./apps/quotas
./apps/scope
./apps/secret
./apps/shorturl
./pkg/aggregator
./pkg/apimachinery
./pkg/apiserver
./pkg/build
./pkg/build/wire // skip:golangci-lint
./pkg/codegen
./pkg/infra/features
./pkg/plugins
./pkg/plugins/codegen
./pkg/promlib
./pkg/semconv
./pkg/storage/unified/resource/kv
)
replace github.com/prometheus/alertmanager => github.com/grafana/prometheus-alertmanager v0.25.1-0.20260225120258-18275ca76b0c
replace github.com/crewjam/saml => github.com/grafana/saml v0.4.15-0.20240917091248-ae3bbdad8a56