gitlab-duo: 8.57.1 -> 8.67.0

Changelog at
https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/blob/bec247d4ff97f036c0a311e22dcb3da6914f4245/CHANGELOG.md

Also correct the update script, harden the post patch phase.
This commit is contained in:
Andrew Fontaine
2026-02-24 11:01:52 -05:00
parent c36c5b9315
commit 0ffc03b2d4
3 changed files with 635 additions and 749 deletions
File diff suppressed because it is too large Load Diff
+5 -8
View File
@@ -11,7 +11,7 @@
}:
buildNpmPackage (finalAttrs: {
pname = "gitlab-duo";
version = "8.57.1";
version = "8.67.0";
# DOCS https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp#node-version
nodejs = nodejs_22;
@@ -21,7 +21,7 @@ buildNpmPackage (finalAttrs: {
owner = "editor-extensions";
repo = "gitlab-lsp";
tag = "v${finalAttrs.version}";
hash = "sha256-IofCSh9ja3C8WEiksp0pFJ6LZOu86o4VHnwiIUHHgLI=";
hash = "sha256-GnL3720MwiWtC7lHA4CrfiZUTeOV+ytWFii16OKGbAM=";
};
patches = [
@@ -32,14 +32,11 @@ buildNpmPackage (finalAttrs: {
# PATCH: Only build for the current platform, not all targets
postPatch = ''
substituteInPlace packages/cli/scripts/compile_executables.sh \
--replace-fail \
'SUPPORTED_TARGETS="bun-linux-x64 bun-linux-arm64 bun-windows-x64 bun-darwin-arm64 bun-darwin-x64"' \
"SUPPORTED_TARGETS=bun-$TARGET"
sed -i 's/SUPPORTED_TARGETS=".\+"/SUPPORTED_TARGETS="bun-$TARGET"/' packages/cli/scripts/compile_executables.sh
'';
npmFlags = [ "--install-links" ];
npmDepsHash = "sha256-dj4TrKMdXgUZr7/0NLT7h8jT3VjobB9KFO8tl/+47rk=";
npmDepsHash = "sha256-9b73NGu3GO5Sgus7BZ7WvOaXBvQ3UrW9BUTk6NwH+uY=";
npmBuildScript = "build:binary";
npmWorkspace = "@gitlab/duo-cli";
nativeBuildInputs = [
@@ -79,6 +76,6 @@ buildNpmPackage (finalAttrs: {
homepage = "https://about.gitlab.com/gitlab-duo/";
license = lib.licenses.mit;
mainProgram = "duo";
maintainers = with lib.maintainers; [ yajo ];
maintainers = with lib.maintainers; [ afontaine ];
};
})
+1 -1
View File
@@ -38,7 +38,7 @@ commander_version=$(jaq -r '.packages["packages/cli"].devDependencies.commander'
commander_version="${commander_version/^}"
# Sync locked version and remove URL and hash, so they are fixed later
jaq -i --arg ver "$commander_version" \
'.packages["packages/cli/node_modules/commander"].version = $ver | del(.packages["packages/cli/node_modules/commander"].integrity, .packages["packages/cli/node_modules/commander"].resolved)' \
'.packages["node_modules/commander"].version = $ver | del(.packages["node_modules/commander"].integrity, .packages["node_modules/commander"].resolved)' \
./package-lock.json
npm install --package-lock-only --ignore-scripts