-
Notifications
You must be signed in to change notification settings - Fork 29
running make fails to build the project from a fresh clone #71
Comments
worked for me: ○ → docker run -ti --rm golang:1.7.3
root@beea612be533:/go# cd src/
root@beea612be533:/go/src# mkdir -p github.com/openshift
root@beea612be533:/go/src# cd github.com/openshift/
root@beea612be533:/go/src/github.com/openshift# git clone https://github.com/openshift/image-inspector
Cloning into 'image-inspector'...
remote: Counting objects: 1929, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 1929 (delta 1), reused 0 (delta 0), pack-reused 1925
Receiving objects: 100% (1929/1929), 1.95 MiB | 415.00 KiB/s, done.
Resolving deltas: 100% (609/609), done.
Checking connectivity... done.
root@beea612be533:/go/src/github.com/openshift/image-inspector# make
hack/build-go.sh
hack/build-go.sh took 2 seconds
root@beea612be533:/go/src/github.com/openshift/image-inspector# ./_output/local/bin/local/image-inspector
2017/08/21 08:20:10 Error: docker image to inspect must be specified |
@jhjaggars have you resolved this? Can we close this issue? |
The issue is that the README doesn't explicitly tell you that you need to copy/clone your source to a location expected by the hack script, and makes it sounds like all you need to do is run "make". This may be obvious to someone familiar with the hack script, but not to a newcomer. On Fedora, I had to either: Or mount my image-inspector checkout in the golang image: |
Anyone, any suggestion on how to improve the build mechanism or the documentation? |
i think it should work as long as perhaps we should change the instruction to tell users to |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/lifecycle frozen |
When I run
make
after a fresh clone of the project I receive this error:If I comment out the resetting of $GOHOME in hack/common.sh:67 and symlink the working dir into my own $GOPATH the build works.
I feel like I'm missing a step beyond just clone then make.
The text was updated successfully, but these errors were encountered: