-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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-lock-converter: init at 0.0.2 #231687
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2217 |
Upstream has changed their `yarn.lock` file format to v2. This introduces complications with nixpkgs, which needs the v1 file format. There is also a number of problems with the v2 version (e.g. reproducibility or missing integrity fields) which makes the direct use of v2 lockfile impossible. Due to this change, we will need to convert the lockfile beforehand and add it to nixpkgs. Due to issues with reproducibility it isn't feasable to convert the lockfile within the `pgadmin` derivation. For this commit I added the converted `yarn.lock` file and will add the corresponding update script, once NixOS#231687 has been merged. (This adds the tool to convert most of the v2 file to v1 and adds metadata to the lockfile) Signed-off-by: Florian Brandes <[email protected]>
Please see #229475 how to package new cli tools. |
I've seen this PR. I even mentioned it in the description. Please see my comment there. EDIT: @SuperSandro2000 could you have another look? Thanks |
b46f7f8
to
010abec
Compare
inherit (source) version; | ||
|
||
src = fetchurl { | ||
url = "https://registry.npmjs.org/@vht/yarn-lock-converter/-/yarn-lock-converter-${version}.tgz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a fetcher for this.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Signed-off-by: Florian Brandes <[email protected]>
010abec
to
619d577
Compare
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package built:
|
Description of changes
https://www.npmjs.com/package/@vht/yarn-lock-converter?activeTab=readme
Allows to convert v2 and v3 yarn.lock files to convert to v1 lockfiles.
EDIT:
Yes, I've seen #229475. Unfortunately upstream only provides ayarn.lock
file and nopackage-lock.json
file.(see below)
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)