From fc021197e7450377dfa1efca34087551605b2afa Mon Sep 17 00:00:00 2001 From: Nathan Hammond Date: Tue, 14 Jun 2022 02:20:39 +0800 Subject: [PATCH] Run lint against Go 1.17 to constrain introduction of 1.18 features. (#1374) @gsoltis had a good minimally-invasive suggestion which gets our linters back working: https://github.com/vercel/turborepo/pull/1168#issuecomment-1150243992 This PR implements that suggestion. We still build and publish with 1.18, the only real difference is we run lint against 1.17; which will happily break us if we introduce 1.18-specific features. --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 18566eb9862a2..871dee3e70f76 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.17 - uses: actions/checkout@v3 with: fetch-depth: 2