Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 33 additions & 11 deletions generated/DEPENDENCIES.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"version": "3.0.4",
"version": "3.1.0",
"name": "@optave/codegraph",
"problems": [
"invalid: @optave/codegraph-linux-x64-gnu@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-gnu",
"invalid: @optave/codegraph-linux-x64-musl@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-musl"
],
Comment on lines 3 to +7
Copy link
Contributor

Choose a reason for hiding this comment

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

DEPENDENCIES.json committed with npm error state

The file contains a top-level "problems" array and a trailing "error": {"code": "ELSPROBLEMS"} block, indicating that npm ls exited non-zero when this snapshot was generated. Both @optave/codegraph-linux-x64-gnu and @optave/codegraph-linux-x64-musl are reported as "invalid" because their installed version (3.0.4) no longer satisfies the root project requirement (3.1.0).

The root cause is in .github/workflows/publish.yml line 495:

npm ls --json --all --omit=dev > generated/DEPENDENCIES.json 2>/dev/null || true

npm install runs at line 382 before the new 3.1.0 platform packages are published to npm, so node_modules is still populated with 3.0.4 binaries. After publishing, npm ls sees the version mismatch and embeds the error into stdout alongside the JSON.

The fix is to add a fresh npm install (or npm install --ignore-scripts) after the publish steps and before generating the snapshot:

- name: Refresh node_modules after publish
  run: npm install --ignore-scripts

- name: Generate DEPENDENCIES.json
  run: mkdir -p generated && npm ls --json --all --omit=dev > generated/DEPENDENCIES.json 2>/dev/null || true

Until then, any tooling that reads generated/DEPENDENCIES.json and checks for a top-level "error" key or "problems" array will see a spurious failure for the two Linux x64 packages.

"dependencies": {
"@modelcontextprotocol/sdk": {
"version": "1.27.1",
Expand Down Expand Up @@ -738,8 +742,24 @@
"@optave/codegraph-darwin-x64": {},
"@optave/codegraph-linux-arm64-gnu": {},
"@optave/codegraph-linux-arm64-musl": {},
"@optave/codegraph-linux-x64-gnu": {},
"@optave/codegraph-linux-x64-musl": {},
"@optave/codegraph-linux-x64-gnu": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@optave/codegraph-linux-x64-gnu/-/codegraph-linux-x64-gnu-3.0.4.tgz",
"overridden": false,
"invalid": "\"3.1.0\" from the root project",
"problems": [
"invalid: @optave/codegraph-linux-x64-gnu@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-gnu"
]
},
"@optave/codegraph-linux-x64-musl": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@optave/codegraph-linux-x64-musl/-/codegraph-linux-x64-musl-3.0.4.tgz",
"overridden": false,
"invalid": "\"3.1.0\" from the root project",
"problems": [
"invalid: @optave/codegraph-linux-x64-musl@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-musl"
]
},
"@optave/codegraph-win32-x64-msvc": {},
"better-sqlite3": {
"version": "12.6.2",
Expand Down Expand Up @@ -1031,7 +1051,9 @@
"overridden": false,
"dependencies": {
"obliterator": {
"version": "2.0.5"
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.5.tgz",
"overridden": false
}
}
},
Expand All @@ -1048,8 +1070,8 @@
}
},
"graphology": {
"version": "0.25.4",
"resolved": "https://registry.npmjs.org/graphology/-/graphology-0.25.4.tgz",
"version": "0.26.0",
"resolved": "https://registry.npmjs.org/graphology/-/graphology-0.26.0.tgz",
"overridden": false,
"dependencies": {
"events": {
Expand All @@ -1059,11 +1081,6 @@
},
"graphology-types": {
"version": "0.24.8"
},
"obliterator": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.5.tgz",
"overridden": false
}
}
},
Expand All @@ -1072,5 +1089,10 @@
"resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.26.6.tgz",
"overridden": false
}
},
"error": {
"code": "ELSPROBLEMS",
"summary": "invalid: @optave/codegraph-linux-x64-gnu@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-gnu\ninvalid: @optave/codegraph-linux-x64-musl@3.0.4 /home/runner/work/codegraph/codegraph/node_modules/@optave/codegraph-linux-x64-musl",
"detail": ""
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
},
"optionalDependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"@optave/codegraph-darwin-arm64": "3.0.4",
"@optave/codegraph-darwin-x64": "3.0.4",
"@optave/codegraph-linux-arm64-gnu": "3.0.4",
"@optave/codegraph-linux-arm64-musl": "3.0.4",
"@optave/codegraph-linux-x64-gnu": "3.0.4",
"@optave/codegraph-linux-x64-musl": "3.0.4",
"@optave/codegraph-win32-x64-msvc": "3.0.4"
"@optave/codegraph-darwin-arm64": "3.1.0",
"@optave/codegraph-darwin-x64": "3.1.0",
"@optave/codegraph-linux-arm64-gnu": "3.1.0",
"@optave/codegraph-linux-arm64-musl": "3.1.0",
"@optave/codegraph-linux-x64-gnu": "3.1.0",
"@optave/codegraph-linux-x64-musl": "3.1.0",
"@optave/codegraph-win32-x64-msvc": "3.1.0"
},
"devDependencies": {
"@biomejs/biome": "^2.4.4",
Expand Down