Repository navigation
chore(release): bump to 1.2.1 — fix WinGet portable install - #151
Merged
Merged
Conversation
Bumps niubash to 1.2.1 and records the WinGet packaging fix. - Cargo.toml / crates/niubash-runtime/Cargo.toml: 1.2.0 -> 1.2.1, rubash dependency 1.2.0 -> 1.2.1 - CHANGELOG.md: 1.2.1 entry documenting the WinGet root cause - Cargo.lock: matching version bumps for niubash, niubash-runtime, rubash WinGet validation on microsoft/winget-pkgs#437563 (Add-Unixwin.Niubash-1.1.4) failed with exit code -1073741515 (0xC0000135 STATUS_DLL_NOT_FOUND). Root cause is the manifest, not the binary: InstallerType: zip + NestedInstallerType: portable makes WinGet's portable shim copy only the declared niu.exe into %LOCALAPPDATA%\Microsoft\WinGet\Links, dropping the sibling winuxcmd/usr/bin tree that niu.exe resolves at startup via bundled_winuxcmd_candidates. No source behavior changes.
This was referenced Oct 1, 2026
caomengxuan666
added a commit
to unixwin/rubash
that referenced
this pull request
Oct 1, 2026
Version-only bump so niubash 1.2.1 can depend on a matching engine version.
niubash resolves rubash from git branch=master, so master must declare 1.2.1
before niubash's `rubash = { version = "1.2.1" }` requirement can resolve.
No code changes.
Companion: unixwin/niubash#151
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.
Bumps niubash to 1.2.1 and records the WinGet packaging fix.
Changes
Cargo.toml/crates/niubash-runtime/Cargo.toml: version 1.2.0 -> 1.2.1,rubash dependency 1.2.0 -> 1.2.1
CHANGELOG.md: 1.2.1 entry documenting the WinGet root causeCargo.lock: matching version bumps for niubash, niubash-runtime, rubashBackground
WinGet's automated validation on
microsoft/winget-pkgs#437563
(Add-Unixwin.Niubash-1.1.4) failed:
Root cause is the manifest, not the binary: the 1.1.4 manifest shipped the
release zip with
InstallerType: zip+NestedInstallerType: portable, andWinGet's portable shim copies only the declared
niu.exeinto%LOCALAPPDATA%\Microsoft\WinGet\Links. The siblingwinuxcmd/usr/bin/winuxcmd.exetree — whichniu.exeresolves at startup viabundled_winuxcmd_candidatesincrates/niubash-runtime/src/winuxcmd.rs— isleft behind, so all six candidate paths miss and startup aborts.
The fix is on the manifest side: switch to
InstallerType: innoagainst the-setup.exeassets the release already publishes. Full analysis, repro stepsand corrected manifest files are in #150.
Notes
v1.2.1tag must be pushed after this merges, so the release workflow'sValidate Cargo version matches release tagstep sees a matching version.Closes #150.
CI status — expected failure, blocking on merge order
All three jobs on
4e99e4afailed, and the failure is not a code problem.Every job dies at the same step with the same message:
build-and-testcargo buildcross-check (ubuntu-latest)cargo check (unix acceptance line)cross-check (macos-latest)cargo check (unix acceptance line)Why
ci.ymlstep Checkout rubash path dependency runs:That clones master at its current tip, and
ci.yml's cargo invocation doesnot use the
[patch]override fromCargo.toml. So even though the patchrewrites the same job's source in-repo, the requirement
rubash = "^1.2.1"is still resolved against the remote git repo — whose
masterstill declares1.2.0.Verified baseline: the last run on
master(36657305587, sha9802fffe, samecargo check --workspace --locked) is fully green, so nothing here is aregression in the tree.
Resolution
unixwin/rubash#366 lands first. Once
rubash'smasterdeclares1.2.1, the^1.2.1requirement resolves and re-running these checks should go green withno change to this branch. The
linux/darwincross-target check iscargo checkonly, so this is a resolution problem rather than aplatform problem.
Do not push the
v1.2.1tag before this merges —release.ymlvalidatesCargo.tomlversion against the tag and would fail.