Fix errors when specifying absolute path
This commit is contained in:
parent
99329fb637
commit
7063a9d870
@ -182,7 +182,7 @@ func (cl ContextLoader) buildArgs() []string {
|
||||
|
||||
var retArgs []string
|
||||
for _, arg := range args {
|
||||
if strings.HasPrefix(arg, ".") {
|
||||
if strings.HasPrefix(arg, ".") || filepath.IsAbs(arg) {
|
||||
retArgs = append(retArgs, arg)
|
||||
} else {
|
||||
// go/packages doesn't work well if we don't have prefix ./ for local packages
|
||||
|
Loading…
x
Reference in New Issue
Block a user