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
strategy:
matrix:
include:
- GOOS: windows
- GOOS: linux
- GOOS: darwin
name: lint
runs-on: ubuntu-latest
This has the effect that when the analyser runs it may be in a situation where it cannot get all the required type information to be able to complete the analysis. Unfortunately, in this situation it does not simply fail, but emits incorrect linter advice that people then try to fix.
The situation where this most commonly will happen is when the build includes Cgo dependencies, as beats do.
The correct approach would be to use the Multiple OS Support provided by the action.
The text was updated successfully, but these errors were encountered:
The current golangci-lint action configuration uses GOOS to try to lint on platforms other than the OS that the builder is running on.
This has the effect that when the analyser runs it may be in a situation where it cannot get all the required type information to be able to complete the analysis. Unfortunately, in this situation it does not simply fail, but emits incorrect linter advice that people then try to fix.
The situation where this most commonly will happen is when the build includes Cgo dependencies, as beats do.
The correct approach would be to use the Multiple OS Support provided by the action.
The text was updated successfully, but these errors were encountered: