Hardcode golangci-lint revision to fix build on main (#1759)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2024-07-01 10:47:26 -04:00 committed by GitHub
parent fa18e32e12
commit edc654c1de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,8 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
only-new-issues: true
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8
- name: "Copyright headers"
run: |

View File

@ -17,7 +17,7 @@ import (
// This exercises most of the logic in StaticEvaluator and staticScopeData
//
//nolint:gocognit,cyclop // it's a test
//nolint:cyclop // it's a test
func TestStaticEvaluator_Evaluate(t *testing.T) {
// Synthetic file for building test components
testData := `

View File

@ -320,7 +320,6 @@ func TestEvaluateForEachExpression_multi_errors(t *testing.T) {
t.Errorf("wrong result from tfdiags.DiagnosticCausedBySensitive\ngot: %#v\nwant: %#v", got, want)
}
}
})
}
}