Install private repo#123
Conversation
Avoid to re-install a dependency that is already installed at a higher level for a dependency that could depend on it.
[username]@github.com/repo.git
|
Github advertises: Anyway:
Container logs The clone URL did not work. |
|
(Glad to see the scrubbed logs coming in use :)) |
|
@declarativ-bot test this |
|
@declarativ-bot test this |
|
@mczepiel Sorry, I think that I broke it with my last commit, but it should be good know. By the way, I also updated filament in order to ease the user experience with the overlay that allows us to install a new dependency, let me know what you think about it. @Stuk could we use the option --recurse-submodules for the clone function, in order to clone the eventual submodules as well ? ex: https://github.com/KhronosGroup/glTF/tree/master/converter/COLLADA2GLTF/dependencies |
|
yeah, that option makes sense. How would keeping the submodules up to date work? How does npm do it (if they actually do anything)? |
|
Ok trying to bring this one back into the spotlight.
|
|
Oh and also apparently npm will treat |
|
If I remember well, the Package Manager will fix every urls to respect the format git+https:// |
|
I thought we were just doing that internally when we needed to actually fetch the dependency, but the content should go into the file as the user expects. We have to assume they'll be using this package outside of montage studio as well. |
|
I think that I wanted to simply the work for the user, for example if an user write that: https://github.com/com:username/package.git or git@github.com:username/package.git... Yeah, It should save what an user write, I'll fix that as soon as possible. (I think I just need a few minutes to fix that) |
|
Well the latter example is a valid entry into the package.json, no need to muck with it. For the former you will need to transform it for writing into the package.json, likely if somebody has pasted that http+git is good enough. But yeah, regardless we should try to preserve the string as authored. Bigger problem was that palette didn't get installed for me. |
Add a way to install private repositories, but it will only support github.com urls.
Add some functions for checking giturls and add some specs related to them.