You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running bin/fetch-golangci-lint and bin/run-tests on an M1 Mac (or other arm64 system), contributors receive the following error:
copy exemplar exercises/practice/word-search/.meta/example.go to tmp/lint/practice/word_search
copy module exercises/practice/word-search/go.mod to tmp/lint/practice/word_search
copy generator exercises/practice/word-search/.meta/gen.go
put everything in the same module
copy base files and tests to tmp/lint/practice/wordy
copy exemplar exercises/practice/wordy/.meta/example.go to tmp/lint/practice/wordy
copy module exercises/practice/wordy/go.mod to tmp/lint/practice/wordy
copy generator exercises/practice/wordy/.meta/gen.go
put everything in the same module
copy base files and tests to tmp/lint/practice/yacht
copy exemplar exercises/practice/yacht/.meta/example.go to tmp/lint/practice/yacht
copy module exercises/practice/yacht/go.mod to tmp/lint/practice/yacht
copy generator exercises/practice/yacht/.meta/gen.go
put everything in the same module
copy base files and tests to tmp/lint/practice/zebra_puzzle
copy exemplar exercises/practice/zebra-puzzle/.meta/example.go to tmp/lint/practice/zebra_puzzle
copy module exercises/practice/zebra-puzzle/go.mod to tmp/lint/practice/zebra_puzzle
put everything in the same module
running linter and tests for exercises and exercise generators
panic: load embedded ruleguard rules: rules/rules.go:13: can't load fmt
goroutine 1 [running]:
github.com/go-critic/go-critic/checkers.init.22()
github.com/go-critic/go-critic@v0.6.3/checkers/embedded_rules.go:47 +0x494
LINTER/TESTS FAILED for exercises or exercise generators
deleting tmp/lint
This is due to an interaction with golangci-lint and go-critic on older versions of golangci-lint.
See this issue for more information.
Note, this issue has been documented for arm64 systems with certain versions of Go, but doesn't seem to occur on amd64 architectures. However, it doesn't appear to be an issue for arm64 anymore since v1.49.0.
Steps to reproduce
On an M1 mac or other arm64 machine, run the current bin/fetch-golangci-lint script
Try running the tests with bin/run-tests
See error above
The text was updated successfully, but these errors were encountered:
Problem
After running
bin/fetch-golangci-lint
andbin/run-tests
on an M1 Mac (or other arm64 system), contributors receive the following error:This is due to an interaction with
golangci-lint
andgo-critic
on older versions ofgolangci-lint
.See this issue for more information.
Note, this issue has been documented for arm64 systems with certain versions of Go, but doesn't seem to occur on amd64 architectures. However, it doesn't appear to be an issue for arm64 anymore since v1.49.0.
Steps to reproduce
bin/fetch-golangci-lint
scriptbin/run-tests
The text was updated successfully, but these errors were encountered: