-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn for enterprise git repos #1248
Comments
This is package.json entry: |
What does the |
@Daniel15 its a configured value, which we use internally , above is example version of URL in my package.json. I can't share exact URL as its enterprise thing. |
@Daniel15 Thanks for the reply 👍 at least. Seeing # of issues reported, i wasn't expecting any reply soon. |
@Daniel15 The OpenSSH client doesn't follow the RFC for URIs, what follows the : after the domain is always a path. Git follows the RFCs for all URIs. |
Ahh, got it. Shouldn't the path begin with a |
bottom line is : same URL works with |
@abhijeetNmishra The command is failing because the It looks like NPM is introducing non-standard behavior. |
@chrisirhc That is an example for URL rewrite rules meant to be placed in a I use these rewrite rules to switch from
The only shorthand supported is:
|
@chase what I'm observing is that the rewrite rules aren't working (aren't being applied) when yarn attempts to clone. This is what caused a breakage when switching from npm to yarn. @chase , in your example would you be able to use |
@chrisirhc Hm, I can see where you're coming from. This is how I see it: There are no defaults sets of re-write rules to handle the URL in question, which seems to be a cross-breed of both scp and ssh style URLs. After looking deeper into the inconsistency between npm and yarn, it seems that npm has a git URI normalization step. yarn handles URI inconsistencies in the The solution I've been planning on getting at is to integrate npm's normalization package in the proper areas, but the feedback I was looking for on the There are several issues rooting from incompatibility and it seems they keep popping up every day, but ultimately #513 covers this issue more clearly. @chrisirhc, my example would not allow that, no. |
Is this going to be picked up? would be very nice to get |
Trying to install a newer version of a repo (i.e yarn add https://****@github.com/****/****.git#v1.0.5 Yarn tries to run at git archive 5179795d2575196062582271d5c5a32c3fe03dc6 which fails because:
When I execute
Clearing cache, or even just the .tmp dir, seems to fix this. My guess is that cloning is done incorrectly. |
I need to perform npm install from a enterprise git repo like below:
git+ssh://[email protected]:tech/library#develop
Its failing with below log
_error Command failed.
Exit code: 128
Command: git
Arguments: clone ssh://[email protected]:tech/library /Users//.yarn-cache/.tmp/bd1634df3d45c462cf0ca410896de658
Directory: /Users//MobileUIMod
Output:
Cloning into '/Users//.yarn-cache/.tmp/bd1634df3d45c462cf0ca410896de658'...
ssh: Could not resolve hostname git.abc.com:tech: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command._
Same is working fine with npm install.
The text was updated successfully, but these errors were encountered: