Closed
Description
I'm trying to create a Homebrew formula for Kompose.
$ brew install -i kompose
==> Using the sandbox
==> Downloading https://github.com/kubernetes-incubator/kompose/archive/v0.2.0.tar.gz
Already downloaded: /Users/sam/Library/Caches/Homebrew/kompose-0.2.0.tar.gz
==> Entering interactive mode
Type `exit' to return and finalize the installation
Install to this prefix: /usr/local/Cellar/kompose/0.2.0
bash-3.2$ export GOPATH=`pwd`
bash-3.2$ echo $GOPATH
/private/tmp/kompose-20170210-81761-1bzgwbv/kompose-0.2.0
However, I can't get the build to succeed. I've tried all the build methods listed in README.md
.
make bin
bash-3.2$ make bin
fatal: Not a git repository (or any of the parent directories): .git
make: glide: Command not found
go build -ldflags="-w -X github.com/kubernetes-incubator/kompose/version.GITCOMMIT=" -o kompose main.go
main.go:19:8: cannot find package "github.com/kubernetes-incubator/kompose/cmd" in any of:
/usr/local/Cellar/go/1.7.5/libexec/src/github.com/kubernetes-incubator/kompose/cmd (from $GOROOT)
/private/tmp/kompose-20170210-81761-1bzgwbv/kompose-0.2.0/src/github.com/kubernetes-incubator/kompose/cmd (from $GOPATH)
make: *** [bin] Error 1
go build -o kompose main.go
bash-3.2$ go build -o kompose main.go
main.go:19:8: cannot find package "github.com/kubernetes-incubator/kompose/cmd" in any of:
/usr/local/Cellar/go/1.7.5/libexec/src/github.com/kubernetes-incubator/kompose/cmd (from $GOROOT)
/private/tmp/kompose-20170210-81761-1bzgwbv/kompose-0.2.0/src/github.com/kubernetes-incubator/kompose/cmd (from $GOPATH)
CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -o kompose main.go
bash-3.2$ CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -o kompose main.go
main.go:19:8: cannot find package "github.com/kubernetes-incubator/kompose/cmd" in any of:
/usr/local/Cellar/go/1.7.5/libexec/src/github.com/kubernetes-incubator/kompose/cmd (from $GOROOT)
/private/tmp/kompose-20170210-81761-1bzgwbv/kompose-0.2.0/src/github.com/kubernetes-incubator/kompose/cmd (from $GOPATH)
make cross
bash-3.2$ make cross
fatal: Not a git repository (or any of the parent directories): .git
make: glide: Command not found
gox -os="darwin linux windows" -arch="386 amd64" -output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" -ldflags="-w -X github.com/kubernetes-incubator/kompose/version.GITCOMMIT="
/bin/sh: gox: command not found
make: *** [cross] Error 127
Unfortunately, I am not familiar with Go. Can anyone point me in the right direction?
Metadata
Assignees
Labels
No labels