ansible-language-server: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-04-28 23:28:31 +03:00
committed by K900
parent d99337c544
commit 56efd80072
2 changed files with 29 additions and 2 deletions

View File

@@ -19,12 +19,16 @@ stdenv.mkDerivation (finalAttrs: {
tag = "v${finalAttrs.vscodeAnsibleVersion}";
hash = "sha256-DsEW3xP8Fa9nwPuyEFVqG6rvAZgr4TDB6jhyixdvqt8=";
};
patches = [
# Remove when updating, the project migrated to pnpm in https://github.com/ansible/vscode-ansible/commit/afa700ff78ad0839df446d18cb26e71b28559af4
./yarn-4.14-support.patch
];
missingHashes = ./missing-hashes.json;
offlineCache = yarn-berry_4.fetchYarnBerryDeps {
inherit (finalAttrs) src missingHashes;
hash = "sha256-GScYVFdG8MMtPjtXfz7e6Y+A1tFMF9T8suvU+/BhsHY=";
inherit (finalAttrs) src missingHashes patches;
hash = "sha256-Lm3cz+ydOee34J2tnlMQuSTzBzFKFpQTXcMreMS3ZiU=";
};
nativeBuildInputs = [

View File

@@ -0,0 +1,23 @@
diff --git a/.yarnrc.yml b/.yarnrc.yml
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -20,4 +20,7 @@ supportedArchitectures:
- darwin
- win32
-yarnPath: .yarn/releases/yarn-4.12.0.cjs
+approvedGitRepositories:
+ - "**"
+
+enableScripts: true
diff --git a/yarn.lock b/yarn.lock
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,6 @@
# Manual changes might be lost - proceed with caution!
__metadata:
- version: 8
+ version: 9
cacheKey: 10