Skip to content

[P1][bug] min_app_version is set to the previous release — either inert or it strands anyone who skips one #568

Closed

Description

@EVWorth

What

The manifest sets min_app_version to the tag before the one being released:

PREV_TAG=$(git tag --sort=-v:refname | grep -v "^${TAG}$" | head -1 | sed 's/^v//')
if [ -n "$PREV_TAG" ]; then
  echo "  \"min_app_version\": \"$PREV_TAG\"," >> update-manifest.json
fi

with a comment asserting: "Plugin honors this: current-version users whose app is below the threshold don't see the update."

Two problems, and the second depends on the first

Is the field read at all? I could not confirm that Tauri's static-JSON updater honours min_app_version. The only min_app_version documented in this repository is in ARCHITECTURE's plugin manifest specification, which is unrelated to the updater. If the updater ignores it, the comment states something untrue about behaviour nobody has verified.

If it is read, the policy is wrong. Setting the floor to the immediately-previous release means anyone who skips a single version can no longer update at all, and has to reinstall by hand. That is the opposite of what an updater is for, and it fails silently — the user simply never sees an update again.

The uncertain reading is the dangerous one, which is reason enough to settle it rather than leave it in place.

Expected

Either the field is removed, or it is set from a deliberate compatibility floor — the oldest version whose installed updater can apply this release — and the behaviour is confirmed against a real client rather than asserted in a comment.

Activity

  1. added
    severity/p1
    kind/bug
    area/theming
    on Sep 8, 2026
  2. EVWorth commented on Sep 11, 2026

    @EVWorth
    OwnerAuthor

    Already fixed, in 5b530c4 ("build the update manifest from the artifacts the updater can use", #572).

    min_app_version is not emitted at all. Your second point is the decisive one: set to the previous tag it strands anyone who skips a release, with no signal to them — and since the first point (whether the field is read at all) could not be settled, leaving it in place meant shipping a policy nobody had verified.

    The script says so where the manifest is assembled: a compatibility floor belongs there only when there is a real incompatibility to describe.

    There is a test named "emits no min_app_version" in scripts/test-build-update-manifest.sh, run in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/themingkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions