Skip to content
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

vale-ls: init at 0.3.7 #288450

Closed
wants to merge 1 commit into from
Closed

Conversation

foo-dogsquared
Copy link
Member

Description of changes

Add LSP server for Vale.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Contributor

@oliviacrain oliviacrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for packaging this!

];

cargoHash = "sha256-QEU9e8KTAnLD9ykV+C87iVKojX2aEDRwocwvZcxpOU8=";
cargoPatches = [ ./0001-Update-dependencies.patch ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of a couple of days ago, upstream publishes a lockfile. Can we take that patch instead, to keep us at parity with upstream?

];

cargoHash = "sha256-QEU9e8KTAnLD9ykV+C87iVKojX2aEDRwocwvZcxpOU8=";
cargoPatches = [ ./0001-Update-dependencies.patch ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of patching Cargo.toml to remove the vendored feature flag from openssl, can we set the OPENSSL_NO_VENDOR environment variable at build time? Seems easier than maintaining a patch and regenerating the lockfile every time there's a release.

From the relevant documentation:

OPENSSL_NO_VENDOR - If set, always find OpenSSL in the system, even if the vendored feature is enabled.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, vale-ls downloads a copy of vale to use. I don't think that's desirable, since we already package vale in nixpkgs.

I think it would be best to wrap the executable to (a) set the initialization parameter installVale to false and (b) add nixpkgs' copy of vale to PATH.

Relevant documentation:
https://vale.sh/docs/integrations/guide/#vale-ls


src = fetchFromGitHub {
owner = "errata-ai";
repo = pname;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Setting repo = pname considered harmful by some. (#277994)

@oliviacrain
Copy link
Contributor

The utils::tests::arch test fails on aarch64-linux. Looks like upstream didn't account for the existence of this architecture.

The test can be skipped on that architecture, since it relates to the "download vale at runtime" functionality. The lack of that feature for aarch64-linux won't be a problem if we wrap the executable as I suggested in another comment.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 3, 2024
@jansol
Copy link
Contributor

jansol commented May 14, 2024

(this is included in #304375 which is now merged)

@jansol jansol closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants