@hnakamur @mattn
First of all, thank you for open-sourcing such a cool library! I was really happy when I found gom supports GO15VENDOREXPERIMENT, but here is my problem. The below is repro process.
$ echo $GO15VENDOREXPERIMENT
1
$ go get github.com/mattn/gom
$ git clone git@github.com:achiku/sample-golang-packaging-gom.git
$ cd sample-golang-packaging-gom
$ gom install
$ find vendor -type d -maxdepth 2
vendor
vendor/github.com
vendor/github.com/fatih
vendor/github.com/mattn
vendor/github.com/shiena
vendor/pkg
vendor/pkg/darwin_amd64
$ gom run main.go # it fails
$ gom build # it fails
$ mkdir vendor/src
$ mv vendor/github.com vendor/src
$ gom run main.go
Hello, world!
$ gom build # it succeeds
Is there any reason to move vendor/src to vendor after building libraries installed by gom install? (GO15VENDORINGEXPERIMENT is introduced in this pr https://github.com/mattn/gom/pull/57) It seems like plain go build can also search for vendor/src if GO15VENDORINGEXPERIMENT is on, so leaving libraries in vendor/src seems ok to me. I'm pretty new to golang, so might be missing something important.
@hnakamur @mattn First of all, thank you for open-sourcing such a cool library! I was really happy when I found
gom
supportsGO15VENDOREXPERIMENT
, but here is my problem. The below is repro process.https://github.com/achiku/sample-golang-packaging-gom
Is there any reason to move
vendor/src
tovendor
after building libraries installed bygom install
? (GO15VENDORINGEXPERIMENT is introduced in this pr https://github.com/mattn/gom/pull/57) It seems like plaingo build
can also search forvendor/src
ifGO15VENDORINGEXPERIMENT
is on, so leaving libraries invendor/src
seems ok to me. I'm pretty new to golang, so might be missing something important.