-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
firebase-tools: enable building on node 22 #370752
Conversation
Btw, why is that override used? I just copied the diff after running |
You mentioned earlier that updating Also, nix builds need to be deterministic -- by specifying the override in package.json, we get a repeatable build (as opposed to an update which will change over time). |
Yes, of course, and also Also, is shrinkwrap not the same as package-lock? |
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.
LGTM
these will go away anyways once upstream gets a new version
I added the override in a fork of firebase-tools then ran
shrinkwrap is a superset of package.lock and can be copied/renamed to form a package lock. I had to apply the override in the package.json to get the correct values in the output lockfiles. EDIT: See later comments. My reasoning wasn't quite correct. |
e61722e
to
7fbd32c
Compare
7fbd32c
to
a88130c
Compare
Mirroring the override vs npm update question at firebase/firebase-tools#8097 |
I ran an experiment: what would happen if I tried to regenerate the shrinkwrap file? It turns out that doens't work -- there are multiple compilation errors. So a Would you prefer that I remove the override from the patch? (We'll see which direction the upstream wants to do also.) |
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.
LGTM
we can decide on the upstream PR whether it should be an override or not
I'll merge in 15 minutes. I don't think we should wait for too long, since fixing a broken build is always a net positive. |
@TomaSajt thank you for being patient with me |
ajv
JSON validator with a modern version. It was triggering compilation problems when built in the sandbox.nan
-- the node native interfaces -- to a version supporting node 22 (and earlier).Fixes #369813
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.