-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
astro-language-server: init at 2.10.0 #309100
Conversation
This makes use of PNPM, so it can be improved with #290715 being merged. If that's merged before this, I'll be glad to update this. |
I think it'll take time for #290715 :). |
CI isn't green BTW - hash mismatch. |
5f2260d
to
4c70200
Compare
Confirmed the error and fixed. |
4c70200
to
23a5be6
Compare
Also version 2.9.0 is out, consider bumping. |
23a5be6
to
cbe36c9
Compare
Updated, but now I'm getting |
Damn... Another a hash mismatch in ofborg:
I wonder what @Scrumplex will think about it.. @pyrox0 could you run please
And/Or somehow try to find the culprit for the hash difference? |
pnpm config set store-dir $out | ||
# use --ignore-script and --no-optional to avoid downloading binaries | ||
# use --frozen-lockfile to avoid checking git deps | ||
pnpm install --frozen-lockfile --no-optional --ignore-script |
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.
pnpm install --frozen-lockfile --no-optional --ignore-script | |
pnpm install --frozen-lockfile --no-optional --ignore-script --force |
this is the result of the hash mismatch. without --force
, pnpm will only install dependencies for the current architecture. we might want to extract from #290715 or vesktop
instead
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.
Edited this in and fixed the hash. Thanks for catching this!
Also edited in some other changes from #290715, but still doesn't resolve the build issue.
be6faf1
to
899cea0
Compare
Thanks for the ideas in that! I kept the original dependencies process and added some filtering, managed to get it down to ~215 mb. Can you test if this still works? I don't see any reason it shouldn't, but a double-check would be great. |
899cea0
to
a5de681
Compare
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.
Tested it and works as expected! You're right, we probably shouldn't adopt the new pnpm tooling until it supports workspaces to save on performance, this builds (approximately) 2x faster with half as much filesize.
pnpm config set side-effects-cache false | ||
pnpm config set update-notifier false | ||
pnpm config set dedupe-peer-dependents false | ||
pnpm install --filter=@astrojs/language-server --frozen-lockfile --no-optional --ignore-script --force |
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.
So Do I understand correctly that this --filter
argument is what you would miss support for in pnpm.fetchDeps
?
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.
The filter thing is important, but also setting dedupe-peer-dependants above, which is required for this package to build properly.
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.
The filter thing is important, but also setting dedupe-peer-dependants above, which is required for this package to build properly.
Hmm it'd be nice to make pnpm.fetchDeps
accept arguments that would allow to add arbitrarily such config options.. cc @Scrumplex
pnpm config set package-manager-strict false | ||
pnpm config set dedupe-peer-dependents false | ||
|
||
pnpm install --filter=@astrojs/language-server --offline --frozen-lockfile --no-optional --ignore-script |
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.
For sure pnpm.configHook
will gain benefit if you could add arbitrary flags to it... What do you think about that @Scrumplex ?
a5de681
to
0f97ef1
Compare
R.E That isn't the case here, both the symlink and the file it points to are both marked executable. I'm still not sure why patchShebangs doesn't work. |
0f97ef1
to
21c7157
Compare
OK This looks good in principal, but I tend to think it will be beneficial to add the missing options to the |
I can try to do that at least for the filter attribute, but the extra config options may be a bit more difficult. I'll see what I can do, and will submit it as a separate pull request. |
Please rebase |
#323493 (which also needs a reabase :)) is a better alternative. I'll close this one in favor of it. |
Close NixOS#309100 . Co-authored-by: Pyrox <[email protected]>
Description of changes
Creates the astro-language-server package, moving it from nodePackages. I also regenerated
node-packages.nix
to remove it from that package set, but if that's not wanted to be in this PR, I can remove that. This also updates from 2.8.3 to 2.10.0, see the changelog.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.