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
Is there a reason for the cache code being an internal package, which means it can't be imported outside of the golangci-lint module?
I'm creating a linter.Context in my project to run some analyzers, but can't instantiate a pkgCache because it's an internal package; it's the only thing that is. Without it you get a nil pointer error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a reason for the cache code being an internal package, which means it can't be imported outside of the
golangci-lint
module?I'm creating a
linter.Context
in my project to run some analyzers, but can't instantiate apkgCache
because it's an internal package; it's the only thing that is. Without it you get a nil pointer error.golangci-lint/pkg/lint/linter/context.go
Line 28 in fd6fce9
Beta Was this translation helpful? Give feedback.
All reactions