We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99329fb commit 7063a9dCopy full SHA for 7063a9d
pkg/lint/load.go
@@ -182,7 +182,7 @@ func (cl ContextLoader) buildArgs() []string {
182
183
var retArgs []string
184
for _, arg := range args {
185
- if strings.HasPrefix(arg, ".") {
+ if strings.HasPrefix(arg, ".") || filepath.IsAbs(arg) {
186
retArgs = append(retArgs, arg)
187
} else {
188
// go/packages doesn't work well if we don't have prefix ./ for local packages
0 commit comments