Closed syohex closed 7 years ago
This was introduced by https://github.com/mattn/gom/commit/a2d474243cd5b5b6c4aa5abdf344a0040225f0fe
Could you please once remove _vendor
?
Could you please once remove vendor
I still get error even if _vendor
is removed.
% ls
exec.go gen.go Gomfile gomfile_test.go main.go README.mkd
exec_test.go gen_test.go gomfile.go install.go misc/
% ls -l _vendor
ls: cannot access '_vendor': No such file or directory
% export GO15VENDOREXPERIMENT=0
% ag GO15VENDOREXPERIMENT # I didn't typo
main.go
87: return os.Getenv("GO15VENDOREXPERIMENT") == "1"
89: return os.Getenv("GO15VENDOREXPERIMENT") != "0"
% gom install
downloading github.com/mattn/gover
downloading github.com/hashicorp/go-version
downloading github.com/daviddengcn/go-colortext
gom: open /home/syohei/go/src/github.com/mattn/gom/_vendor/src: no such file or directory
Did you set GO15VENDOREXPERIMENT=0
?
Yes, moveSrcToVendor is called after build/install.
But your gom command (I don't know the version of gom) may be do it because behavior moveSrcToVendor was changed in few days ago.
I use latest gom
.
In this environment, moveSrcToVendor is called twice at this line and this line
% ls _vendor
bin/ pkg/ src/
% ls _vendor
bin/ github.com/ pkg/
% ls _vendor
bin/ github.com/ pkg/
_vendor/src
is already moved, so second moveSrcToVendor
is falied.
What do you mean second?
When gom install,
Sorry for confused. Second means moveSrcToVendor
at this point(https://github.com/mattn/gom/blob/a2d474243cd5b5b6c4aa5abdf344a0040225f0fe/install.go#L568). (first call is here(https://github.com/mattn/gom/blob/a2d474243cd5b5b6c4aa5abdf344a0040225f0fe/install.go#L316)
could you please update gom?
Error is gone. Thanks.