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
{{ message }}
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.
This changeset adds two transitive dependencies to the golangci-lint rules:
1. The compiled libraries from the Go SDK, to allow the `govet` linter
to run without a warning that it can't initialize the standard
library.
2. The `go` binary from the configured SDK, to ensure the linter always
uses the same Go binary as the rest of the Bazel build. This also
allows this rule to execute in environments (or sandboxes) that
otherwise don't have Go installed.
Bug: atlassian#50
Bug: atlassian#51
Hey Mikhail.
It doesn't look like I can view the CLA without providing personal
information to DocuSign. So I don't think I'll be doing so.
Hopefully my bug reports provide enough information to replicate and
resolve.
The golangci-lint rule does not depend on the SDK libraries. This results in a warning from govet (and possibly other linters):
WARN [runner] Can't run linter govet: can't typecheck package: can't init std types: import of type fmt.Stringer failed: can't find import: fmt
By adding
depset(sdk.libs)
to the transitive dependencies list the compiled libraries are added to execution directory and everything is happy.bazel-tools/golangcilint/def.bzl
Lines 27 to 30 in 02472d8
The text was updated successfully, but these errors were encountered: