Commit graph

3948 commits

Author SHA1 Message Date
Vladislav Doster 429ab13631 release: v3.14.0 → v3.15.0
# [3.15.0](https://github.com/zdharma-continuum/zinit/compare/v3.14.0...v3.15.0) (2026-07-01)

### Bug Fixes

* .zi-check-for-git-changes runs git fetch before checking for changes ([1107460](1107460bcd))
* add markdownlint exceptions to linting ([507b4e5](507b4e5722))
* avoid apostrophe that breaks typeset -f round-trip of :zinit-tmp-subst-autoload ([#783](https://github.com/zdharma-continuum/zinit/issues/783)) ([d2d4237](d2d4237715))
* correct SSH URL format for private repos ([#721](https://github.com/zdharma-continuum/zinit/issues/721)) ([991e4a8](991e4a816e))
* corrected print-out message in self-update routine ([bb37f3b](bb37f3bbd8))
* impl gh-r version detection using GitHub API ([#731](https://github.com/zdharma-continuum/zinit/issues/731)) ([f1e503d](f1e503dc3b)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* prevent "permission denied" errors from empty hook handlers ([#729](https://github.com/zdharma-continuum/zinit/issues/729)) ([2167408](2167408db2))
* prevent double extraction when exclamation mark modifier is used in extract'!' ([4fd38b3](4fd38b34e7)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r) [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* remove `local -A OPTS` that shadows caller's parallel flag ([#774](https://github.com/zdharma-continuum/zinit/issues/774)) ([e88ed77](e88ed77319))
* resolve a bug where the `-q` option for quiet mode was never dispatched ([6cf2f29](6cf2f2990d))
* resolve a second issue where `git -C <path>` had to be used instead of `git --work-tree <path>` ([2e83176](2e83176b23))
* resolves a bug with github action trying to push updated docs back to external forks ([#763](https://github.com/zdharma-continuum/zinit/issues/763)) ([34a1811](34a18112e8))
* silenced `zinit self-update` when in quiet mode (`-q`) ([8d154b0](8d154b0609))
* trust archive permissions instead of `file(1)` heuristics in `ziextract` ([#771](https://github.com/zdharma-continuum/zinit/issues/771)) ([1334994](1334994f20))
* update `git-chglog` to `git-cliff` in gh-r tests ([18fc2cc](18fc2cc5b9)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* Update various tools in gh-r tests ([#759](https://github.com/zdharma-continuum/zinit/issues/759)) ([01eb65f](01eb65f8ce)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)

### Features

* validate ice arguments ([#778](https://github.com/zdharma-continuum/zinit/issues/778)) ([424b241](424b241bc7))
* **zsh:** allow configuring settings like HOME_DIR/BIN_DIR via zstyle ([8f89f88](8f89f88cfd))
2026-07-01 00:40:22 +00:00
vladislav doster fbf511804c
Merge pull request #785 from zdharma-continuum/worktree-agent-a8f829c0814f3ef51
feat(zsh): configure ZINIT settings (`HOME_DIR`, `BIN_DIR`, …) via zstyle
2026-06-30 19:38:55 -05:00
vladislav doster 66211de7a3
Merge branch 'main' into worktree-agent-a8f829c0814f3ef51 2026-06-26 21:50:33 -05:00
vladislav doster ed04c9cafe
Merge pull request #786 from zdharma-continuum/dependabot/github_actions/actions/checkout-7
build(deps): bump actions/checkout from 6 to 7
2026-06-19 12:10:17 -05:00
dependabot[bot] 0ab1ee4fb7
build(deps): bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 12:02:28 +00:00
vladdoster 8f89f88cfd feat(zsh): allow configuring settings like HOME_DIR/BIN_DIR via zstyle
Resolve ZINIT[...] settings from `zstyle ':zinit:config' <attr>` before
the BIN_DIR/HOME_DIR/derived-dir logic runs. The attribute name is the
hash field lowercased with `_` replaced by `-` (HOME_DIR -> home-dir).

An explicitly-set ZINIT[KEY] always wins over zstyle, which wins over
the built-in default; fully backward-compatible.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-06-18 19:05:42 -05:00
Agusti F. d2d4237715
fix: avoid apostrophe that breaks typeset -f round-trip of :zinit-tmp-subst-autoload (#783) 2026-06-15 13:54:18 +02:00
Andrea Alberti c51a835a21
Document the e- / no-e- prefix on atpull hook-group names, and fix a mislabeled section header (#781) 2026-06-01 09:05:22 +02:00
Andrea Alberti 27a0dc5527
## Fix extract ice not working during zinit update for from'gh-r' (#780) 2026-05-30 22:39:06 +02:00
Andrea Alberti 17f2c4bc74
test: replace cog gh-r test with cosign
replicate/cog stopped shipping a static binary in its GitHub releases
(switched to a Python wheel coglet-*.whl as of v0.20.0), which broke the
linux gh-r CI job — ziextract cannot unpack a .whl, and the linked symlink
returns 'exec format error' when run.

Replace with sigstore/cosign, which still ships static binaries
(cosign-linux-amd64 / cosign-darwin-{amd64,arm64}) and slots into
the alphabetical position between 'checkmake' and 'compress'.
2026-05-30 18:42:00 +02:00
GitHub Actions 74173749a6 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-05-24 08:12:20 +00:00
Tom Hale 424b241bc7
feat: validate ice arguments (#778)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-24 10:09:43 +02:00
GitHub Actions 6c9ac1c4bc docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-24 07:52:22 +00:00
Pedro Pombeiro e88ed77319
fix: remove local -A OPTS that shadows caller's parallel flag (#774) 2026-03-24 08:49:40 +01:00
dependabot[bot] 61a0244bb4
build(deps): bump EndBug/add-and-commit from 9 to 10 (#773)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-23 22:21:42 +01:00
GitHub Actions f40d837148 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-14 22:42:14 +00:00
Andrea Alberti 1334994f20
fix: trust archive permissions instead of file(1) heuristics in ziextract (#771) 2026-03-14 23:39:35 +01:00
dependabot[bot] f82d91ccac
build(deps): bump docker/build-push-action from 6 to 7 (#770)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-07 09:55:12 +01:00
GitHub Actions 4b4845c3b0 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-06 00:29:07 +00:00
Andrea Alberti 807590f25e
Merge pull request #761 from alberti42/fix-extract
- Fix incorrect double extraction when `extract` ice is used with `from'gh-r'`
- Improved documentation of `extract` ice
- Added test units for `extract` ice
2026-03-06 01:26:23 +01:00
Andrea Alberti b4728b29f7
test: added tests for ice extract 2026-03-06 01:15:30 +01:00
Andrea Alberti 4205b399dd
docs: improve documentation of extract modifiers (their documentation was so far completely missing) 2026-03-06 01:15:30 +01:00
Andrea Alberti 4fd38b34e7
fix: prevent double extraction when exclamation mark modifier is used in extract'!'
When using extract'!' with from'gh-r', ziextract was called twice:
1. First by the gh-r download code (line 407) — extracting the archive directly
2. Then by the ∞zinit-extract-hook — calling ziextract --auto --move

On the second call, the .tar.gz was already gone, so --auto mode fell through to file-command detection, which identified .jar files as zip archives
and tried to extract them — corrupting the plugin and producing errors.

Fix: Both the gh-r download path (line 407) and the tarball path (line 272) now skip their direct ziextract call when the extract ice is set,
deferring entirely to the ∞zinit-extract-hook which handles it correctly.
2026-03-06 01:15:30 +01:00
Andrea Alberti d3458542c3
ci: temporary fix for bug with katex package referencing the missing build-time constant __VERSION__ (revert in future)
markdownlint-cli is now pinned to version 0.44.0; waiting for a
fix upstream https://github.com/igorshubovych/markdownlint-cli/issues/606.
When the fix is found, we should revert this commit back.
2026-03-06 01:14:44 +01:00
dependabot[bot] 1d893e53b2
build(deps): bump docker/setup-buildx-action from 3 to 4 (#769)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 16:44:40 +01:00
dependabot[bot] 3bdc6d264b
build(deps): bump docker/login-action from 3 to 4 (#768)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 08:46:30 +01:00
dependabot[bot] a1d8fc5a7e
build(deps): bump docker/setup-qemu-action from 3 to 4 (#767)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 08:43:27 +01:00
Andrea Alberti c2cc70a9a6
maint: disable installer workflow to prevent spurious "no jobs were run" emails 2026-03-03 10:35:39 +01:00
GitHub Actions 9cc86ae0a3 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-03 08:52:06 +00:00
Andrea Alberti 0984515471
Merge pull request #762 from alberti42/fix-self-update
This PR fixes several bugs in `.zi-check-for-git-changes()` that broke `zinit self-update`. Most importantly, it resolves a long-standing bug that prevented zinit self-update from ever detecting upstream changes, meaning every user who ran it would silently get "Already up to date." regardless of reality.
2026-03-03 09:49:28 +01:00
vladislav doster 91e8e6a65f
maint: remove duplicate .zinit-parse-opts call in self-update case block
- Removed since [`.zinit-parse-opts` is ran earlier](https://github.com/zdharma-continuum/zinit/pull/762/changes#diff-475a2f1e35813d9641ea77e854b9bf0d8c36b077bedbb6ae0bde1a0529dbbf0cR2634) in `zinit`
2026-03-03 09:22:24 +01:00
Andrea Alberti 1c0e24fca4
test: added tests for zinit self-update. Throw error if unsupported arguments are provided. 2026-03-03 09:22:24 +01:00
vladislav doster c68d4973a5
maint: update self-update zunit tests
- Add tests for `self-update` with `--help` and `--quiet` flags
- Update expected output with no flags
2026-03-03 09:22:24 +01:00
Andrea Alberti 81dd21f8d7
test: align self-update output expectation with grammatically corrected log message
Grammar correction suggested by @vladdoster.
2026-03-03 09:22:23 +01:00
Andrea Alberti c9045da63a
docs: added useful comment about silencing logs during bulk updates 2026-03-03 09:22:23 +01:00
Andrea Alberti 95ba7d1dd4
refactor: implemented parsing of options for self-update using .zinit-parse-opts; extended number of supports variants, options
Follows suggestions from https://github.com/zdharma-continuum/zinit/pull/762#pullrequestreview-3811990006

Co-authored-by: vladislav doster <mvdoster@gmail.com>
2026-03-03 09:22:19 +01:00
Andrea Alberti bb37f3bbd8
fix: corrected print-out message in self-update routine
Co-authored-by: vladislav doster <mvdoster@gmail.com>
2026-03-03 08:44:44 +01:00
Andrea Alberti 6cf2f2990d
fix: resolve a bug where the -q option for quiet mode was never dispatched 2026-03-03 08:44:44 +01:00
Andrea Alberti 8d154b0609
fix: silenced zinit self-update when in quiet mode (-q) 2026-03-03 08:44:44 +01:00
Andrea Alberti 2e83176b23
fix: resolve a second issue where git -C <path> had to be used instead of git --work-tree <path> 2026-03-03 08:44:44 +01:00
Andrea Alberti 1107460bcd
fix: .zi-check-for-git-changes runs git fetch before checking for changes
Bug description before the fix:

.zi-check-for-git-changes() checks if there are upstream changes by comparing HEAD...@{u}, but it does this without fetching first. It compares the local HEAD
against the locally cached upstream ref, which is stale until someone runs git fetch.

The flow:

1. .zi-check-for-git-changes runs git rev-list --left-right --count HEAD...@{u} — but @{u} refers to the local tracking ref (e.g.,
refs/remotes/origin/integrated), which hasn't been updated yet
2. Since no fetch has happened, the local tracking ref matches HEAD, so down is 0
3. The function prints "Already up-to-date." and returns 1 (no changes)
4. .zinit-self-update never enters the if block, so the git fetch + git pull on lines 2002-2024 never execute

The git fetch that would update the remote tracking refs is inside the block guarded by .zi-check-for-git-changes, so it could not be executed.
2026-03-03 08:44:44 +01:00
vladislav doster 87a8e6b0d6
ci: simplify workflow and job names (#765)
- rename lint jobs and update task matrix names
- rename labeler workflow and job
- rename zunit test workflow and job
2026-02-17 07:25:41 -06:00
vladislav doster f2985297a9
Merge pull request #764 from zdharma-continuum/vladdoster-patch-1
fix: update `git-chglog` to `git-cliff` in gh-r tests
2026-02-17 06:24:20 -06:00
vladislav doster 18fc2cc5b9
fix: update git-chglog to git-cliff in gh-r tests
git-chglog was archived and git-cliff  is actively maintained fork
2026-02-17 06:10:09 -06:00
Andrea Alberti 34a18112e8
fix: resolves a bug with github action trying to push updated docs back to external forks (#763) 2026-02-15 20:51:37 +01:00
vladislav doster 701657f71b
Merge pull request #760 from zdharma-continuum/ci/fix-linting
fix: add markdownlint exceptions to linting
2026-02-02 10:58:49 -06:00
Vladislav Doster 507b4e5722 fix: add markdownlint exceptions to linting
Disabled following checks:

- MD024/no-duplicate-heading
- MD059/descriptive-link-text
- MD060/table-column-style

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-02-02 10:50:22 -06:00
vladislav doster 01eb65f8ce
fix: Update various tools in gh-r tests (#759) 2026-02-01 09:43:27 +01:00
GitHub Actions 89e1858b72 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-01-03 13:41:34 +00:00
Andrea Alberti 55d19f86f6
Fix(self-update): Honor current branch instead of hardcoding 'main' (#751) 2026-01-03 14:38:58 +01:00