Do you want to request a _feature_ or report a _bug_?
Reporting a bug
What is the current behavior?
Couldn't find any versions for stampit that matches github.com/stampit-org/stampit.git.
If the current behavior is a bug, please provide the steps to reproduce.
yarn init
yarn add git+ssh://[email protected]/stampit-org/stampit.git
yarn ls
What is the expected behavior?
To display list of installed packages.
Please mention your node.js, yarn and operating system version.
Node v6.7.0, yarn 0.16.1, Windows 10 x64
Additional information
Since yarn.lock contains records together with a protocol, this should be either stripped from there or kept in package.json. Otherwise it's probably not possible to find a match.
I've already mentioned it in this comment, but feels like a different issue.
Although it definitely does drop the protocol when using links like git+ssh://[email protected]/org/repo.git, if you need to get past this you can simply replace the link added to the package.json with the one you initially tried to add via yarn add. After this I can successfully run yarn without it complaining.
@vinnymac Yea I guess that might work, but I doubt it's intended behavior :)
I've checked on master and this seems to be working now. Are you still able to reproduce this @FredyC?
@wyze I would love to check that. Is there some other supported way of installing master? I did try npm i -g yarnpkg/yarn, but that is failing. Do I have to clone whole repo and build by myself?
That is how I currently test, yes.
Alright, I went ahead I did it like that and it is indeed working. Looking forward for a new release :) Could be happening more often frankly. I am too excited to use Yarn properly at last :)
D:\workspace\test>yarn\bin\yarn.cmd add git+ssh://[email protected]/stampit-org/stampit.git
yarn add v0.16.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
鈹斺攢 [email protected]
Done in 14.71s.
D:\workspace\test>yarn\bin\yarn.cmd ls
yarn ls v0.16.2
鈹斺攢 [email protected]
Done in 8.91s.
Thanks!
Most helpful comment
@vinnymac Yea I guess that might work, but I doubt it's intended behavior :)