update git dependencies

32 views
Skip to first unread message

Maxim Yefremov

unread,
Jul 8, 2013, 12:15:50 PM7/8/13
to nod...@googlegroups.com
I got lib1 that depends on lib2 via git:
"dependencies": {
    "lib2": "git+ssh://g...@repo.com:userName/lib2.git"    
  }
When code changed in lib2 repository I want to have changes in lib1. What should I do to get that changes in lib1. I try npm install in lib1 but nothing had changed. 

greelgorke

unread,
Jul 9, 2013, 7:26:26 AM7/9/13
to nod...@googlegroups.com
npm update?

Maxim Yefremov

unread,
Jul 9, 2013, 7:35:46 AM7/9/13
to nod...@googlegroups.com
npm update updates everything exept git dependencies


--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/ZnoX1XXgTtU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
С уважением,
Максим Ефремов

greelgorke

unread,
Jul 9, 2013, 8:05:37 AM7/9/13
to nod...@googlegroups.com
ah yes.


to update, just append the commit hash

Maxim Yefremov

unread,
Jul 9, 2013, 8:19:15 AM7/9/13
to nod...@googlegroups.com
Ok tried to add commit hash:
"dependencies": {
     "lib2": "git+ssh://g...@repo.com:userName/lib2.git#e899c1e"    
  }
And then npm update
But nothing changed.

Matt

unread,
Jul 9, 2013, 9:34:53 AM7/9/13
to nod...@googlegroups.com
You need to update the version number in the package.json in lib2. We do this all the time at hubdoc.

Maxim Yefremov

unread,
Jul 9, 2013, 11:38:32 AM7/9/13
to nod...@googlegroups.com
Matt, thanx. I changed version in package.json and now it works as expected. 


--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/ZnoX1XXgTtU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matt

unread,
Jul 9, 2013, 11:42:41 AM7/9/13
to nod...@googlegroups.com

On Tue, Jul 9, 2013 at 11:38 AM, Maxim Yefremov <max...@gmail.com> wrote:
Matt, thanx. I changed version in package.json and now it works as expected. 

To be fair, this could be documented better - I expected it to work like you did at first.

Alex Kocharin

unread,
Jul 13, 2013, 2:08:44 AM7/13/13
to nod...@googlegroups.com

1. mv node_modules node_modules.backup
2. npm install

`npm update` is just broken, and there is no way around it :(

Maxim Yefremov

unread,
Jul 13, 2013, 2:10:28 AM7/13/13
to nod...@googlegroups.com

Thank you, Alex

--
Reply all
Reply to author
Forward
0 new messages