You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2021. It is now read-only.
I would assume anything Yarn installs successfully will succeed with this project. In this case I can work around it, but I thought I'd file the issue just so this case can be explored and root-caused.
The source repository is a fork, so I'm assuming that there is something funky with the Git history that is causing this. Searches for both error messages turn up issues with Git submodules and with force pushing. The library I'm attempting to use, npm-license-crawler, has issues filed related to installing this dependency, so there's likely something out of the ordinary happening here.
For that reason, if you would like to close this issue as outside the scope of yarn2nix or too much of an edge case, I'm comfortable with that.
Reproduction
I've collected a minimal reproduction here, consisting of a default.nix file with the latest version of yarn2nix (including the recent addition to fetch Git sources by @srghma), a package.json file with a single dependency (the one that's breaking), and the lock file Yarn produces for that package.json file.
With the directory structure below you should be able to run nix-build and see the error message.
.
├── default.nix
├── package.json
└── yarn.lock
Show source files
First, the default.nix file which simply calls yarn2nix:
letpkgs=import<nixpkgs>{};# Nov 22, 2019yarn2nix=import(pkgs.fetchFromGitHub{owner="moretea";repo="yarn2nix";rev="9e7279edde2a4e0f5ec04c53f5cd64440a27a1ae";sha256="0zz2lrwn3y3rb8gzaiwxgz02dvy3s552zc70zvfqc0zh5dhydgn7";}){};inyarn2nix.mkYarnPackage{name="my-parn-package";src=./.;}
Then, the package.json file with the malfunctioning dependency:
A project containing this URL in its dependencies:
...causes the below error, while Yarn installs it correctly.
However, switching to a later commit succeeds, though there are warning messages related to 'no shared commits'.
Expectation
I would assume anything Yarn installs successfully will succeed with this project. In this case I can work around it, but I thought I'd file the issue just so this case can be explored and root-caused.
The source repository is a fork, so I'm assuming that there is something funky with the Git history that is causing this. Searches for both error messages turn up issues with Git submodules and with force pushing. The library I'm attempting to use,
npm-license-crawler
, has issues filed related to installing this dependency, so there's likely something out of the ordinary happening here.For that reason, if you would like to close this issue as outside the scope of
yarn2nix
or too much of an edge case, I'm comfortable with that.Reproduction
I've collected a minimal reproduction here, consisting of a
default.nix
file with the latest version ofyarn2nix
(including the recent addition to fetch Git sources by @srghma), a package.json file with a single dependency (the one that's breaking), and the lock file Yarn produces for that package.json file.With the directory structure below you should be able to run
nix-build
and see the error message.Show source files
First, the
default.nix
file which simply callsyarn2nix
:Then, the package.json file with the malfunctioning dependency:
Finally, the resulting
yarn.lock
file produced by runningyarn
in the directory with thepackage.json
file:View lock file
The text was updated successfully, but these errors were encountered: