diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6b2989a81a..231d387c80 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,6 +24,13 @@ jobs: with: fetch-depth: 0 persist-credentials: false + # A patch release in go.mod stops setup-go from picking the latest one + - name: Reject Go patch releases in go.mod + run: | + if git ls-files -z '*go.mod' | xargs -0 grep -nE '^(toolchain |go [0-9]+\.[0-9]+\.)'; then + echo "::error::Use the minor version only (go mod edit -go=1.N -toolchain=none)" + exit 1 + fi - name: Lint Code Base uses: super-linter/super-linter/slim@2da136927bd4a73596db63044b504547c62cb854 # v9.0.0 env: diff --git a/caddy/go.mod b/caddy/go.mod index 5ec17d67a7..071b9cd975 100644 --- a/caddy/go.mod +++ b/caddy/go.mod @@ -1,6 +1,6 @@ module github.com/dunglas/frankenphp/caddy -go 1.27.0 +go 1.27 replace github.com/dunglas/frankenphp => ../ diff --git a/go.mod b/go.mod index 5bdf3653d2..51e74e5968 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/dunglas/frankenphp -go 1.27.0 +go 1.27 retract v1.0.0-rc.1 // Human error