Skip to content

chore(release): bump to 1.2.1 — fix WinGet portable install - #151

Merged
caomengxuan666 merged 1 commit into
masterfrom
chore/bump-1.2.1
Oct 1, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
chore/bump-1.2.1

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

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 cause
  • Cargo.lock: matching version bumps for niubash, niubash-runtime, rubash

Background

WinGet's automated validation on
microsoft/winget-pkgs#437563
(Add-Unixwin.Niubash-1.1.4) failed:

Executable C:\Users\Validator\AppData\Local\Microsoft\WinGet\Links\niu.exe
returned exit code: -1073741515   (0xC0000135 STATUS_DLL_NOT_FOUND)

Root cause is the manifest, not the binary: the 1.1.4 manifest shipped the
release zip with InstallerType: zip + NestedInstallerType: portable, and
WinGet's portable shim copies only the declared niu.exe into
%LOCALAPPDATA%\Microsoft\WinGet\Links. The sibling
winuxcmd/usr/bin/winuxcmd.exe tree — which niu.exe resolves at startup via
bundled_winuxcmd_candidates in crates/niubash-runtime/src/winuxcmd.rs — is
left behind, so all six candidate paths miss and startup aborts.

The fix is on the manifest side: switch to InstallerType: inno against the
-setup.exe assets the release already publishes. Full analysis, repro steps
and corrected manifest files are in #150.

Notes

  • A v1.2.1 tag must be pushed after this merges, so the release workflow's
    Validate Cargo version matches release tag step sees a matching version.
  • No source behavior changes in this PR — version metadata and changelog only.
  • Engine bump depends on chore: bump to 1.2.1 rubash#366.

Closes #150.

CI status — expected failure, blocking on merge order

All three jobs on 4e99e4a failed, and the failure is not a code problem.
Every job dies at the same step with the same message:

error: failed to select a version for the requirement `rubash = "^1.2.1"`
candidate versions found which didn't match: 1.2.0
location searched: Git repository https://github.com/unixwin/rubash.git?branch=master
required by package `niubash v1.2.1 (/home/runner/work/niubash/niubash)`
job failing step cause
build-and-test cargo build version resolution
cross-check (ubuntu-latest) cargo check (unix acceptance line) version resolution
cross-check (macos-latest) cargo check (unix acceptance line) version resolution

Why

ci.yml step Checkout rubash path dependency runs:

git clone --depth 1 https://github.com/unixwin/rubash.git ../rubash

That clones master at its current tip, and ci.yml's cargo invocation does
not use the [patch] override from Cargo.toml. So even though the patch
rewrites the same job's source in-repo, the requirement rubash = "^1.2.1"
is still resolved against the remote git repo — whose master still declares
1.2.0.

Verified baseline: the last run on master (36657305587, sha 9802fffe, same
cargo check --workspace --locked) is fully green, so nothing here is a
regression in the tree.

Resolution

unixwin/rubash#366 lands first. Once rubash's master declares 1.2.1, the
^1.2.1 requirement resolves and re-running these checks should go green with
no change to this branch. The linux/darwin cross-target check is
cargo check only, so this is a resolution problem rather than a
platform problem.

Do not push the v1.2.1 tag before this merges — release.yml validates
Cargo.toml version against the tag and would fail.

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.
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
@caomengxuan666
caomengxuan666 merged commit 2c6ad31 into master Oct 1, 2026
3 of 6 checks passed
@caomengxuan666
caomengxuan666 deleted the chore/bump-1.2.1 branch October 10, 2026 01:24
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.

[bug] WinGet 安装的 niu 无法启动:portable 清单只搬单个 exe,丢失同级 winuxcmd 目录树

1 participant