Skip to content

fix(autoload): correct bugs in auto-reload, zpmod build, and zi.zsh cleanup#345

Merged
ss-o merged 1 commit into
nextfrom
fix/autoload-and-zi-core
May 16, 2026
Merged

fix(autoload): correct bugs in auto-reload, zpmod build, and zi.zsh cleanup#345
ss-o merged 1 commit into
nextfrom
fix/autoload-and-zi-core

Conversation

@ss-o

@ss-o ss-o commented May 16, 2026

Copy link
Copy Markdown
Member

Description

Fix several bugs in lib/zsh/autoload.zsh and clean up minor issues in
zi.zsh, identified during code review of #341.

Changes

lib/zsh/autoload.zsh:

  • zi-auto-reload: use loop variable rm_file (was incorrectly rm_compiled)
  • .zi-self-update: drop --autostash from git merge (not a valid option for merge; only valid for rebase/pull)
  • zpmod build: capture pipestatus[1] from make | tee; remove redundant second make invocation that ran the build twice
  • zpmod build: make cp explicit — zpmod.so → zpmod.bundle (avoid brace expansion ambiguity)
  • Fresh install: guard --reset recompile message with [[ -e RECOMPILE_REQUEST ]] check

zi.zsh:

  • Remove duplicate version entry from ZI[cmd-list]
  • Fix spelling noticablenoticeable and grammar in zicompinit_fast comment

docs/README.md:

  • Fix thref=href= on VIM badge link
  • Fix </p></a></a></p> (mis-nested tags)

Related issues

Extracted from #341.

Type of change

  • fix — bug fix (non-breaking)

Checklist

  • My branch was created from next (not main)
  • This PR targets the next branch
  • Commit messages follow Conventional Commits format
  • No AI co-author trailers in commit messages
  • Existing tests pass (zsh -n zi.zsh / Trunk checks)

- autoload.zsh: use loop variable rm_file (was rm_compiled) in zi-auto-reload
- autoload.zsh: drop --autostash from git merge (not a valid option)
- autoload.zsh: capture pipestatus[1] from make|tee; drop redundant second make
- autoload.zsh: make cp explicit (zpmod.so → zpmod.bundle, no brace expansion)
- autoload.zsh: guard --reset recompile message with RECOMPILE_REQUEST existence
- docs/README.md: fix thref → href on VIM badge; fix </p></a> → </a></p>
- zi.zsh: remove duplicate 'version' entry from ZI[cmd-list]
- zi.zsh: fix spelling 'noticable' → 'noticeable' and grammar in zicompinit_fast comment
Copilot AI review requested due to automatic review settings May 16, 2026 13:13
@ss-o
ss-o requested a review from a team as a code owner May 16, 2026 13:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes a set of correctness issues in Zi’s autoload/self-update/module-build paths, plus a couple of small cleanup and documentation fixes identified during review of #341.

Changes:

  • Correct .zi-auto-reload removal loop variable usage and fix .zi-self-update git merge invocation.
  • Fix zpmod build logic to avoid double-building and to correctly detect pipeline failures; tighten copy step.
  • Minor cleanup/spelling fixes in zi.zsh and HTML fixes in docs/README.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
zi.zsh Removes duplicate version entry from subcommand list and fixes a comment spelling/grammar issue.
lib/zsh/autoload.zsh Fixes auto-reload cleanup, self-update merge options, zpmod build exit-status handling, and recompile-request gating.
docs/README.md Corrects a broken badge link attribute and fixes mis-nested closing tags in the header HTML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ss-o
ss-o merged commit 351a7d4 into next May 16, 2026
16 checks passed
@ss-o
ss-o deleted the fix/autoload-and-zi-core branch May 16, 2026 13:17
@github-actions

Copy link
Copy Markdown

Pull Request closed and locked due to lack of activity.
If you'd like to build on this closed PR, you can clone it using this method: https://stackoverflow.com/a/14969986
Then open a new PR, referencing this closed PR in your message.

@github-actions github-actions Bot locked and limited conversation to collaborators May 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants