Skip to content

Self-update: correct version message, untracked files no longer block - #15

Merged
Darknode-Official merged 3 commits into
mainfrom
fix/update-version-msg
Nov 2, 2026
Merged

Darknode-Official merged 3 commits into
mainfrom
fix/update-version-msg

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

Found while checking every update path.

  • After darknode update / /update apply the message read updated v2.46.3 → v([^ — because the version regex matched its own source line. It now reads package.json.
  • npm install after an update left an untracked package-lock.json, and the dirty check counted untracked files, so every later update failed with 'you have local changes'. Only tracked edits block now, and the post-update install writes no lockfile.

Verified end to end against a local remote: fresh clone, untracked package-lock.json present, a newer commit pushed; darknode update fast-forwarded and printed updated v2.46.3 → v2.46.5.

The version shown after darknode update / /update apply was read with a
regex that matched its own source line, so it printed garbage
(updated v2.46.3 -> v([^ ...). Read package.json instead.
npm install after an update created an untracked package-lock.json, and
the dirty check counted untracked files, so every later update stopped with
'you have local changes'. Only tracked edits block now, and the post-update
npm install no longer writes a lockfile.
@Darknode-Official
Darknode-Official merged commit 721faac into main Nov 2, 2026
0 of 6 checks passed
@Darknode-Official
Darknode-Official deleted the fix/update-version-msg branch November 2, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant