tarmak
tarmak copied to clipboard
Investigate why go 1.11.4 fails to build
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
I was trying to build tarmak in go 1.11.4
I am getting this:
go generate $(go list ./pkg/... ./cmd/...)
unexpected directory layout:
import path: k8s.io/apimachinery/pkg/api/resource
root: /home/christian/.golang/packages/src
dir: /home/christian/.golang/packages/src/github.com/jetstack/tarmak/vendor/k8s.io/apimachinery/pkg/api/resource
expand root: /home/christian/.golang/packages/src
expand dir: /home/christian/.golang/packages/src/github.com/jetstack/tarmak/vendor/k8s.io/apimachinery/pkg/api/resource
separator: /
can't load package: package .: no Go files in /home/christian/.golang/packages/src/github.com/jetstack/tarmak
Makefile:178: recipe for target 'go_generate' failed
make: *** [go_generate] Error 1
What you expected to happen:
Compiling just fine
How to reproduce it (as minimally and precisely as possible):
Use go 1.11.4 and make build
Anything else we need to know?:
Environment:
- Linux Ubuntu 18.04
@JoshVanL maybe you can reproduce that?
@simonswine Not able to reproduce this locally or containerized
FROM golang:1.11.4
RUN mkdir -p $GOPATH/src/github.com/jetstack
RUN git clone https://github.com/jetstack/tarmak $GOPATH/src/github.com/jetstack/tarmak
WORKDIR $GOPATH/src/github.com/jetstack/tarmak
CMD ["make", "build"]
/unassign /assign @simonswine