-
Notifications
You must be signed in to change notification settings - Fork 1k
macos dep unable to find the import from vendor folder, but work well in window 10 #1548
Comments
Hi, this looks more of related to |
This is example how my project code organized.
oh.. interesting ... |
After i relocate my project in this structure.
when i same happen as below issue: I think still need to wait PR to fix this. |
This error depends on the repository you're trying to vendor. If the repository no longer exists in the original location, or some firewall is blocking access to that repository, this happens. Or, if you don't have a go-import metadata server to serve the metadata of the repository, this happens. Sharing your Gopkg.toml and the exact error would help. |
since I relocate the the working folder. my Gopkg.toml
run
I just realize the error is from my package import.. none of them come from What am i doing wrong?? |
Update Finally I just use
extra info: What I learned: just the macos, the project folder need to be locate below this structure ,
if not follow the structure, will cause the rather than this: (window and linux)
and also need to add or i should just write the |
It seems like there's some model mismatch happening with how you're setting up your project on disk, and naming your import paths. It's hard to say exactly where, but going through the intro guides may help. One problem here appears to be that your import statements point to, for example, To be clear, dep currently treats |
What version of
dep
are you using (dep version
)?dep:
version : devel
build date :
git hash :
go version : go1.9.1
go compiler : gc
platform : darwin/amd64
What
dep
command did you run?dep ensure
dep ensure -update
dep status
This is my dep status
dep status
PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED
github.com/BurntSushi/toml ^0.3.0 v0.3.0 b26d9c3 b26d9c3 1
github.com/dmgk/faker branch master branch master 854b4c6 854b4c6 2
github.com/go-sql-driver/mysql ^1.3.0 v1.3 a0583e0 a0583e0 1
github.com/gorilla/context * v1.1 1ea2538 1ea2538 1
github.com/gorilla/mux ^1.6.1 v1.6.1 53c1911 53c1911 1
github.com/gorilla/schema branch master branch master afe7739 afe7739 1
github.com/gorilla/securecookie * v1.1 667fe4e 667fe4e 1
github.com/gorilla/sessions ^1.1.0 v1.1 ca9ada4 ca9ada4 1
github.com/jmoiron/sqlx branch master branch master de86474 de86474 2
github.com/josephspurrier/csrfbanana branch master branch master 2c49e35 2c49e35 1
github.com/justinas/alice branch master branch master 03f45bd 03f45bd 1
github.com/thedevsaddam/govalidator ^1.7.0 v1.7 ff1b1c7 ff1b1c7 1
golang.org/x/crypto branch master branch master a660000 a660000 2
gopkg.in/guregu/null.v3 ^3.3.0 v3.3.0 e81d6d8 e81d6d8 1
Explain
I try my best to explain what happen to my issue..
currently i am working on one project. sometime i switch between mac os and window pc.
when i run my go file, macos seem like cannot correct find the vendor folder.
example.go
when i run
go run example.go
terminal show this:
my vendor folder in my project:

It show already downloaded inside my vendor folder already.. you may also refer my
dep status
for double confirm.but when i switch to window pc, all work well. that's weird..
The text was updated successfully, but these errors were encountered: