Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

version:latest tag not applied #60

@jtojnar

Description

@jtojnar

For selfoss, we use $nextVersion-$commit as a version string but this confuses Cloudsmith, which expects version strings to follow Semantic Versioning specification.1 As a result, the git commit hash after the dash is considered a pre-release version so Cloudsmith assigns the automatic version:latest tag to the snapshot with the numerically greatest commit hash (e.g. fffffff).

Compare https://github.com/fossar/selfoss/commits/36d9205ba6c0271f99bc2f4e292c160eb20fc24b and https://cloudsmith.io/~fossar/repos/selfoss-git/packages

It is possible to workaround this broken detection of latest version by manually setting version:latest tag (as recommended by your Cloudsmith support agent in 2022). Unfortunately, that only works when done using a separate cloudsmith tags add command after uploading the package, not with the --tags option of push command used by the action.

I guess there is/was some hook updating version:latest that triggers only after the package is pushed, so it clobbers the version:latest tag passed through --tags to push command.

I can try to resurrect the workaround I implemented in #35 if desired.

Footnotes

  1. I also tried using fixed pre as the pre-release version, which will be greater than any commit hash, and relegate the commit hash to build metadata. The SemVer spec mandates that “Build metadata MUST be ignored when
    determining version precedence.” But looks like Cloudsmith considers the build metadata part of the sort key, in contradiction with the SemVer spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions