Comments (8)
I installed Go on OS X with Homebrew. My current version is go1.8.3 darwin/amd64
.
The complete fix as I remember it was to install @ddollar's fork, which installed without any issues, then to update my GOPATH so the command is directly callable.
In other words, it's possible that the changes made by ddollar fixed the issue described in this ticket, but it's also possible that the GOPATH update would have been enough.
from docker-show-context.
What version of git
and what version of go
do you have?
from docker-show-context.
Detail about the failure: The referenced files are git submodules. These should be automatically put in place by go get
as of go 1.7, if I remember correctly. If they're not, then something has gone wrong with go/git/your environment.
One potential fix is to try running git submodule update --init
from $GOPATH/github.com/pwaller/docker-show-context
. Please try this and report back.
from docker-show-context.
I'm going to presume you figured this out. If not, please shout on this issue again.
from docker-show-context.
Yes, in the end it was a path issue. It was my first exposure to Go, so I was not familiar with the beginner issues. Thanks a lot for your help!
from docker-show-context.
No problem. In return, may I ask what version of Go you have, and what resolution you came to?
Please could you explain the path issue so that others if they stumble upon this can fix it as you did?
from docker-show-context.
Hi @pwaller - I've found this tool incredibly useful, thank you. I recently went to reinstall it on a new mac with Go v1.10.2 installed via homebrew and encountered a similar issue to nicbou:
Error message from go get -v -u github.com/pwaller/docker-show-context
$ go get -v -u github.com/pwaller/docker-show-context
github.com/pwaller/docker-show-context (download)
github.com/pwaller/docker-show-context/vendor/github.com/docker/docker (download)
# cd /Users/clarkr/Developer/Go/src/github.com/pwaller/docker-show-context/vendor/github.com/docker/docker; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
package github.com/pwaller/docker-show-context/vendor/github.com/docker/docker/builder/dockerignore: exit status 1
github.com/pwaller/docker-show-context/vendor/github.com/Sirupsen/logrus (download)
# cd /Users/clarkr/Developer/Go/src/github.com/pwaller/docker-show-context/vendor/github.com/Sirupsen/logrus; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
package github.com/pwaller/docker-show-context/vendor/github.com/Sirupsen/logrus: exit status 1
github.com/pwaller/docker-show-context/vendor/golang.org/x/net (download)
# cd /Users/clarkr/Developer/Go/src/github.com/pwaller/docker-show-context/vendor/golang.org/x/net; git pull --ff-only
You are not currently on a branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
package github.com/pwaller/docker-show-context/vendor/golang.org/x/net/context: exit status 1
I tried your suggestion of running git submodule update --init
in the $GOPATH/src/github.com/pwaller/docker-show-context
directory but the submodules seem to be checked out to the right commit so the command does nothing. Running the go get [...]
command afterwards produces the same error as above.
I tried @ddollar's fork, as mentioned by nicbou, and that worked. Perhaps you could pull in his change?
from docker-show-context.
Thanks for the message @RobbieClarken. Your issue looks unrelated, could you file a new one?
With respect to pulling @ddollar's changes, it surprises me that it worked for you, I would have expected things to diverge too much for pulling in random versions to work. I'm reluctant to pull his changes without further explanation as to why it was done and why it works.
FWIW, I'm also having an issue building it, please see #4. That seems to be yet a different issue from yours, but maybe fixing one will fix both.
from docker-show-context.
Related Issues (13)
- No issues, just wanted to say thanks and great project! HOT 1
- Go 1.11 was released with module support HOT 4
- Build binaries for last release HOT 1
- install failed with [email protected]: checksum mismatch HOT 12
- go install fails with "invalid pseudo-version" HOT 1
- Docker build in the README fails HOT 8
- Show every file in the context HOT 1
- Allow specifying location of .dockerignore
- Uses deprecated package HOT 1
- It seems it would be very useful if this took the current .dockerignore into account HOT 3
- "unexpected directory layout" during go get HOT 2
- Homebrew formula HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-show-context.