-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
What version of Go are you using (go version
)?
go version go1.10 linux/amd64 vgo:2018-02-20.1
What did you do?
Trying to work with local packages with my own apps and libs.
Because they are locals i didn't put a package path with dot
My app is under ./app
my lib is under ./mylib
The package of mylib
is just mylib
$cat ./app/go.mod
module "testvgo"
require "mylib" v0.1.0
replace "mylib" v0.1.0 => "../mylib"
vgo doesn't find ../mylib
$ vgo list -m
MODULE VERSION
testvgo -
mylib v0.1.0
=> ../mylib
$vgo build
vgo: import "testvgo" ->
import "mylib" [/usr/local/go/src/mylib]: open /usr/local/go/src/mylib: no such file or directory
Now if i change mylib
by libs.me\mylib
it works
module "testvgo"
require "libs.me/mylib" v0.1.0
replace "libs.me/mylib" v0.1.0 => "../mylib"
What did you expect to see?
I expect it could work with a simple package path without dot
However it's not a problem for me if a dot is mandatory when it's best practice, I just want to be sure I didn't missed something.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.