bmizerany / vendor

Vendor copies go dependencies to ./vendor
52 stars 6 forks source link

Does not copy assembly files for not-GOOS+GOARCH #12

Open Xe opened 8 years ago

Xe commented 8 years ago

Example package: golang.org/x/sys/unix

Causes errors like:

go(401):          backplane/vendor/golang.org/x/sys/unix.munmap: call to external function backplane/vendor/golang.org/x/sys/unix.Syscall
go(401):          backplane/vendor/golang.org/x/sys/unix.mmap: call to external function backplane/vendor/golang.org/x/sys/unix.Syscall6
go(401):          backplane/vendor/golang.org/x/sys/unix.munmap: backplane/vendor/golang.org/x/sys/unix.Syscall: not defined
go(401):          backplane/vendor/golang.org/x/sys/unix.mmap: backplane/vendor/golang.org/x/sys/unix.Syscall6: not defined
go(401):          backplane/vendor/golang.org/x/sys/unix.munmap: undefined: backplane/vendor/golang.org/x/sys/unix.Syscall
go(401):          backplane/vendor/golang.org/x/sys/unix.mmap: undefined: backplane/vendor/golang.org/x/sys/unix.Syscall6

Reproduction steps:

your-mac$ go get -u -v golang.org/x/sys/unix
your-mac$ vendor golang.org/x/sys/unix

linux-amd64$ go install $PACKAGE_THAT_USES_SAID_VENDORED_X_SYS_UNIX