-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
eas-cli: fix most functionalities missing and dangling symlink #382261
base: master
Are you sure you want to change the base?
Conversation
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.
Please add pre/post hooks and remove the echo statements. Also one commit for each fix is ideal
(and if you keep the hooks, you don't need to change the phase from |
@donovanglover Thanks for the feedback, and I applied the changes. In this case replacing yarnInstallHook fixed both issues simultaneously, so I have it as one commit addressing both issues. |
jq '. + {version: "${finalAttrs.version}"}' package.json > package.json.tmp | ||
mv package.json.tmp package.json | ||
# yarnInstallHook strips out build outputs within packages/eas-cli resulting in most commands missing from eas-cli. | ||
installPhase = '' |
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.
installPhase = '' | |
installPhase = '' | |
runHook preInstall | |
installPhase = '' | ||
mkdir -p $out/lib/node_modules/eas-cli-root | ||
yarn install --immutable --immutable-cache --offline --non-interactive --production --frozen-lockfile | ||
cp -r . $out/lib/node_modules/eas-cli-root | ||
''; |
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.
''; | |
runHook preInstall | |
''; |
nodejs | ||
patchelf |
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.
I don't see the purpose of this line, given that stdenv
already provides patchelf
patchelf |
and I don't see it used
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.
/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh: line 23: patchelf: command not found
I get this unless I explicitly put patchelf in buildInput. I'm on nix-darwin so maybe thats why?
eas-cli: add preInstall and postInstall hooks eas-cli: use postFixup instead of postInstall
Resolves #381256 and #382259
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.