Comments (3)
Thanks for coming back. I think it is a good idea to checkout the default branch, do the go get
magic, and checkout the desired revision. I am not a massive fan of storing information about the default branch. Git for instance does that somehow. See http://stackoverflow.com/questions/18726037/what-determines-default-branch-after-git-clone. Not sure about svn, mercurial etc..
from gpm.
That's weird! Definitely not intended.
Interesting: I just tested it on my local environment with gpm 1.4.0
and the same Godeps file as you, on first run I had no warnings, and on second run I have the same warning you are getting.
Behind the scenes gpm uses go get
, coupled with the -u
flag to fetch any updates that have been pushed to the repository between last time you updated it and now. When the dependency is in a detached head state we get warnings from git.
This isn't necessarily a problem: as long as the following line is present it means the commit you requested is in the local history and has been set.
>> Setting github.com/alicebob/miniredis to version bb985e34f0942b1d770bf96e87f830cf38804abe
Although... I do agree its ugly.
Would it be worthwhile to add code to solve this warning? I'll think of a way around it, off the top of my head I can think about storing the default branch and checking it out before the update, or simply suggest deleting the directory and fetching it again. I could also simply delete it automatically, but I'm not big on deleting things without explicit user conscent.
What do you think?
from gpm.
Let's not go the delete route. What @xh3b4sd suggested in his last comment looks good.
from gpm.
Related Issues (20)
- gpm in Dependencies? HOT 3
- Handle private repos out-of-the-box HOT 3
- Path names are not escaped HOT 1
- Add support to list outdated dependencies in the Godeps file HOT 1
- Easier installation and plugin management HOT 7
- Errors from git commands when a pkg and its sub-pkg is in Godeps
- How to set a svn address HOT 8
- Fatal errors installing non-root packages HOT 2
- Rewrite test suite with BATS
- Consider adding GO15VENDOREXPERIMENT support HOT 9
- GPM support for Windows HOT 1
- I am currently using gpm in part of deployment HOT 6
- Disregard HOT 1
- Unable to install plugins HOT 2
- Generate the dependencies file by scanning the git repo HOT 2
- If go get fails, gpm continues - it should fail HOT 1
- Parallel execution of 'go get' may lead to an error
- Packages with repo on different level are not checked out correctly
- Compatibility with future Go versions
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 gpm.