Skip to content

GoInstall: no install location for directory outside GOPATH #185

@aletheia7

Description

@aletheia7

When I change my GOPATH to a directory other than ~/go, GoInstall fails with with

go install: no install location for directory /opt/someplace/anotherplace/go/src/t outside GOPATH
Press ENTER or type command to continue

Shell: bash
vim-go: 8ac6b9 (today)
GOPATH=~/go

vim-go works great on linux. GOPATH is correct. GoInstall works great. cli "go install" compiles fine with GOPATH=~/go

When I change my GOPATH to another location such as:

export GOPATH=/opt/someplace/anotherplace/go
go env GOPATH
# Output
/opt/someplace/anotherplace/go

and place my app under /opt/someplace/anotherplace/go/src/t, "go install" compiles without errors, however, in vim :GoInstall fails with the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions