Skip to content

search package only in base gopath #85

@assalyn

Description

@assalyn

e.g. I have a source dir like this
+src
_+ login_server
_____main.go (package main)
____
+ login
________login.go (package login)

main.go and dir login are children of dir src, login.go in dir login

when I try --instrument=login
complains
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login

even if I add login_server to gopath, it can't work
cannot find package "login" in any of:
C:\Go\src\login (from $GOROOT)
C:\Go\gopath\src\login (from $GOPATH)
G:\go\zhongshen\server\src\login
G:\go\zhongshen\server\src\login_server\src\login

No idea how to make it work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions