Repository navigation
Conversation
@vortex/main:build is cached by Nx, but its outputs list bsdiff-worker.cjs and not hash-worker.cjs. A build that restores the main build from the Nx cache, such as rebuilding the package in the same folder, ships without the hash worker: importing an archive by hand then fails with "Cannot find module .../app.asar/hash-worker.cjs", the archive gets no MD5 and a collection never recognises it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
patches/0046-hash-worker-nx-cache-output.patch.The problem
A package rebuilt in a folder where it was already built can ship without
hash-worker.cjs. In that package, adding an archive by hand fails with:The archive gets no MD5, so a collection never recognises it and keeps trying to download the file instead.
Released packages are not affected, because they are built from scratch.
Why it happens
Nx caches Vortex's main build. When it reuses that cache, it only restores the files listed as the build's outputs. The list includes
bsdiff-worker.cjsbut forgetshash-worker.cjs, even though the same build script writes both.Rebuilding the package with
makepkg -Cin the same folder reuses the cache kept under~/.nx, so the hash worker goes missing.The fix
Add
hash-worker.cjsandhash-worker.cjs.mapto the outputs of@vortex/main:build.Testing
nx run @vortex/main:build: build once, deletebuild/hash-worker.cjs, build again. Without the patch, the cached run doesn't bring the file back. With the patch, it does.Notes
The same omission exists in upstream Vortex, so it could also be reported to Nexus-Mods/Vortex.
This is one of three separate pull requests (#37 and #38 are the others). Each one adds its patch at the same place in
PKGBUILDand.SRCINFO, so after the first one is merged the others will need a small conflict fix.Suggested changelog line: A package rebuilt from an existing Nx cache no longer lacks the hash worker, which made archives added by hand fail to hash.
🤖 Generated with Claude Code