Skip to content

[HACS] Beta update metadata shows commit SHAs and broken release link #41

Description

@CaneTLOTW

Context

External tester feedback in #2 on v0.6.0-beta.10 exposed two HACS update-entity behaviours:

  1. Home Assistant update notifications showed commit SHAs instead of the beta release tag.
  2. The update/release announcement link returned GitHub 404.

Root cause audit

This is not an SV Dashboard runtime/package defect.

Commit SHA instead of beta tag

HACS 2.x tracks prereleases only when the per-repository Pre-release option/switch is enabled (show_beta = true). If it is off, a repository with only GitHub prereleases can fall back to last_commit for the displayed available version. Because this repository currently has beta GitHub releases only and the repository default branch is develop, the update entity can therefore surface a develop commit SHA rather than v0.6.0-beta.N.

For beta testing, the clean path is to enable the HACS Pre-release switch for SV Dashboard before the next beta is published. Then HACS should resolve the newest prerelease tag instead of the branch commit.

Broken release URL

HACS 2.0.5 constructs update-entity release URLs as:

https://github.com/<owner>/<repo>/releases/<latest_version>

GitHub release pages use:

https://github.com/<owner>/<repo>/releases/tag/<tag>

The first form is confirmed 404 for SV Dashboard beta.10, while the second resolves correctly. This URL is generated by HACS itself; hacs.json/SV Dashboard metadata does not expose a repository-side override for it.

beta.11 verification plan

  • publish v0.6.0-beta.11 as a normal GitHub prerelease (do not fake it as stable)
  • ask the DS4 tester to enable HACS Pre-release for SV Dashboard before HACS refresh/update
  • verify the HA update entity shows v0.6.0-beta.11 instead of a commit SHA
  • record whether HACS release notes render correctly inside Home Assistant
  • expect the external release-link URL to remain an upstream HACS limitation unless HACS fixes its release_url construction
  • keep main unchanged; this beta remains on develop

Stable-release note

Before first stable promotion, review repository default-branch/release-channel policy so unaccepted develop commits are not accidentally presented as normal HACS updates. Do not change the repository default branch as part of this beta minifix without a separate explicit decision.

Related: #2

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions