Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install new entry in Goopfile without updating existing dependencies? #40

Open
ccll opened this issue Jul 16, 2015 · 1 comment

Comments

@ccll
Copy link

ccll commented Jul 16, 2015

goop is so GREAT and I love it! Used it alot since I found it, thanks a lot for the tool.

But I have a minor problem recurring in my development process, in the process I often need to add new dependencies to the project, but I have problems installing ONLY the new dependencies without touching others.
The first thing I tried was adding an entry in the Goopfile then goop install, but goop install just ignore the changed Goopfile and picked-up the content of Goopfile.lock.
Then I tried goop update, it do install the new dependencies, but as the help text indicates it also update all dependencies to latest version, I'd rather not to do it this way as it may compromise the stability of my project.
Then I tried adding entries directly in Goopfile.lock then goop install, but this does not add entries of 'dependencies of dependencies' to the Goopfile.lock, thus leaving unlocked versions flying around.

So what should I do in this situation? I think my use case is a very general one, so maybe there is already a way to do it and I missed it.

@whazzmaster
Copy link

+1

My coworker and I were talking about this today, re: the best way to add a new dependency to a project. We both agreed that we tend to rm Goopfile.lock; goop install after adding the new dependency to the Goopfile. The problem with that is that we may inadvertently take an update we don't want for another dependency.

Is this the preferred workflow? I suspect if it is then people must lock every other dependency to a sha or tag in order to prevent unwanted changes coming down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants