go module no matching versions for query "latest"

Created on 24 Jan 2020  路  2Comments  路  Source: golang/go

created a new "dictionary" package
plugged it in another package "handlers"
both packages are in the "internal" folder

$ go build
go: finding api.git/internal/dictionary latest
go: finding api.git/internal latest
build api.git: cannot load api.git/internal/dictionary: no matching versions for query "latest"

I don鈥檛 understand why he doesn鈥檛 perceive it as a project package but try to pull off as if an external dependence

Most helpful comment

sorry the problem was in the name of the package directory which did not match the name of the package

All 2 comments

sorry the problem was in the name of the package directory which did not match the name of the package

Can't package name be different from directory which holds the package ?

Was this page helpful?
0 / 5 - 0 ratings