Skip to content
Myr

fix: resolve macOS test link failure and update lint rules (#2429)

Landed as adbc881

* chore(ci): fix macOS test linking and tune linter exclusions * fix: resolve macOS linking errors and suppress unused staticcheck nolint warnings in tests * fix(ci): restrict macOS link workaround to Go < 1.24

authored by Shudhanshu Singh · committed by the platform · parent ad460ea · Browse files · 3 files+22 added−2 removed
This landing

State

Landed as adbc881

By oscabriel

Diff stats

3 files+22 added−2 removed

  • other:+22 added−2 removed

3 files+22 added−2 removed

modified:.github/workflows/test.yml+5 added
modified:.golangci.yml+15 added
55 unmodified lines
56 presets:57 - common-false-positives58 - legacy59 - std-error-handling60 warn-unused: true61 rules:62 - path: '_test\.go'63 linters:64 - goconst65 - linters:66 - goconst67 text: 'string `(true|bash|zsh|fish|powershell)`'68 # Some Go/staticcheck versions in the test matrix don't trigger staticcheck warnings69 # on type assertions/LHS variables in test files, while others do.70 # To avoid build failures on both sides, we allow unused staticcheck nolints in test files.71 - path: '_test\.go'72 linters:73 - nolintlint74 text: 'directive `//nolint:staticcheck` is unused'75 settings:76 govet:77 # Disable buildtag check to allow dual build tag syntax (both //go:build and // +build).78 # This is necessary for Go 1.15 compatibility since //go:build was introduced in Go 1.17.
3 unmodified lines
modified:Makefile+2 added-2 removed
19 unmodified lines
20 golangci-lint run -v2122test: install_deps23 $(info ******************** running tests ********************)24 go test -v ./...24 go test -v $(GO_TEST_FLAGS) ./...2526richtest: install_deps27 $(info ******************** running tests with kyoh86/richgo ********************)28 richgo test -v ./...28 richgo test -v $(GO_TEST_FLAGS) ./...2930install_deps:31 $(info ******************** downloading dependencies ********************)32 go get -v ./...
3 unmodified lines