-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
copilot-language-server: add fhs version #393260
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
Conversation
Running both commands on my system via my own flake, not this PR:
|
204de1b
to
e58f731
Compare
You can add the |
@arunoruto thank you for all your efforts on this, really appreciated. can confirm that the -fhs version is working. |
I add the |
Have you tested it before pushing? Do you see the output in the build log that it has been working successfully ? |
da93f50
to
f75f5d2
Compare
f75f5d2
to
871f65b
Compare
871f65b
to
f85e984
Compare
Minor changes:
I will probably make a new PR and try to include Note This is a check you add to passthru.tests which is mainly run by OfBorg, but not in Hydra. If you want a version check failure to block the build altogether, then versionCheckHook is the tool you’re looking for (and recommended for quick builds). The motivation for adding either of these checks would be
And thank you @drupol for reviewing the PR and for the tips!
|
f85e984
to
05a75f2
Compare
05a75f2
to
b81f7c0
Compare
(rebased to pick up the latest version of the package from nixpkgs) This seems to work. Is there any reason we shouldn't merge it? |
Not that I am aware of. The passthru tests will be included in a separate PR since they would go beyond the topic of this one. |
Hello, I haven't merged this PR because I never packaged stuff related to Ping me in a couple of days, if nobody reviewed it, I'll merge it. |
meta = package.meta // { | ||
description = | ||
package.meta.description | ||
+ " (FHS-wrapped). Use this version if you have trouble with the normal one."; |
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.
Shouldn't we mention here what kind of trouble like that executables cannot be executed?
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.
Could I reference the issue #391730 in the text? And if so, as link or just the issue number?
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.
A comment in the form of If you receive an error like: Could not start dynamically linked executable
plus a link to that issue would be super cool :)
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 added a disclaimer to open the package details for more information on when to use it, and added the error messages into longDescription
. I wasn't sure if description
supports markdown and it should be kept short, so I opted for the longDescription
(hence the multiple force-pushes... check trice and push once 😂... still learning tho!).
b81f7c0
to
05a75f2
Compare
05a75f2
to
3547be8
Compare
c67346a
to
69be34c
Compare
69be34c
to
cc402c5
Compare
Solves issue #391730 and closes the PR #391748.
The main inspiration for the FHS environment were the vscode and zed-editor packages. An
fhs
passthru has been created and later referenced inpkgs/top-level/all-packages.nix
.I am not quite sure, if this is the correct of doing this, but it was the only reference I had.
This PR will provide an additional package
copilot-language-server-fhs
, which should solve the issue addressed in #391730. The "normal" package is kept, since it works on stable releases so far. It is possible, when25.05
is released, that the normal package will break. The FHS package will then become the default one in the future.I would be happy if someone could provide a better solution or a fix to the underlying problem. I guess it isn't packages correctly or the package needs additional information?
As for the PR #391748: using the auto patch hook breaks the binary and AFAIK it can't be fixed afterwards, which makes FHS environments the only solution.
If someone has the same problem as addressed in the issue, please test this PR and see if it solves your problem. Looking forward for your feedback.
For those who have a merge/commit bit: please only merge this PR after some testing has been done!
TODO:
versionCheckHook
too, but I am not sure if I should introduce this in this PR or make a separate one.Ping: @wattmto @drupol @brianmcgillion
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.