From 4152c727304e8bf038ae2deba1697a1e90113804 Mon Sep 17 00:00:00 2001 From: NotExpectedYet Date: Fri, 6 Nov 2026 07:21:03 +0000 Subject: [PATCH] docs: install the latest release, not the 0.1 line The install command pinned `#semver:^0.1.0`, and for a `0.x` package a caret range stops before the next minor: `^0.1.0` can never resolve the `0.4.x` line, so the documented command installs v0.1.4 rather than the current release. `>=0.1.0` follows the tags the release workflow publishes, which is what the paragraph promises, and the note now says why the range is not a caret. --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aa58903..60594f5 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ because otherwise there would be no way to grant anything at all. From the repository, following releases: ```sh -dsh plugin --profile web add "git+https://git.notexpectedyet.com/Not-Expected-Yet/dsh-facet.git#semver:^0.1.0" +dsh plugin --profile web add "git+https://git.notexpectedyet.com/Not-Expected-Yet/dsh-facet.git#semver:>=0.1.0" dsh --profile web --dump-config | grep preset-facet # expect the row ``` @@ -84,13 +84,16 @@ Or from a checkout, while working on the plugin itself: dsh plugin --profile web add "/path/to/dsh-facet" ``` -The `#semver:^0.1.0` fragment is the difference between an install that can be +The `#semver:>=0.1.0` fragment is the difference between an install that can be updated and one that cannot. Leave it off and pnpm resolves the default branch to a **commit** and records that commit in `pnpm-lock.yaml` — `dsh plugin update` then has no version to move to, because there is nothing to move between. With the fragment, pnpm resolves against the repository's tags, which the release -workflow creates on every push to `master`. The fragment needs a tag to resolve -against, so it only works once the first release has been published. +workflow creates on every push to `master`. The range is written `>=` rather +than `^` because this package is still `0.x`: a caret range stops before the next +minor, so `^0.1.0` can never reach the `0.4.x` line and would silently install an +old release. The fragment needs a tag to resolve against, so it only works once +the first release has been published. Either way the command is `pnpm add` run inside the profile, and it registers the bundle in `dsh.profile.bundles` for you. A git-hosted plugin that builds on