mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
Revert the mock module back to go 1.22 and make the e2e workflow read the Go version from go.mod (go-version-file) instead of hardcoding 1.23. Rationale: the plugin is interpreted by yaegi, and even Traefik v3.7.1 ships yaegi v0.16.1 (Go 1.22), so the project stays on 1.22. The earlier bump to 1.23 is dropped (plugin go.mod stays 1.22, see #330 for the Renovate cap + CI pin). Mock + all six scenarios verified on Go 1.22. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7 lines
240 B
AMPL
7 lines
240 B
AMPL
// Standalone module so this test helper stays out of the plugin module:
|
|
// it is excluded from the plugin's `go build ./...`, `go test ./...`,
|
|
// golangci-lint and `go mod vendor`. Stdlib only — no dependencies.
|
|
module mocklapi
|
|
|
|
go 1.22
|