Skip to content

Conversation

@xmudrii
Copy link
Member

@xmudrii xmudrii commented Nov 5, 2025

I tried to make the tags handling more robust. The original implementation only had support for v0.0.0-<timestamp>-<hash> type of pseudo versions. That didn't work because v0.0.0 is usable only for v0 and v1 Go modules and we also have v2+ Go modules.

The idea was that we properly cover all possible version and pseudo version string variants. That said, this was supposed to enable publishing-bot to update dependencies managed by publishing-bot in go.mod files for staged repositories to real tags instead of pseudo versions. For example, if client-go is depending on apimachinery, and both are staged repositories, publishing-bot would update apimachinery to the real tag (e.g. v0.29.0) instead of pseudo version string (v2.0.0-<timestamp>-<hash>) when the v0.29.0 tag is created.

Unfortunately, after spending too much time on it, it didn't work out. So we are back to the original implementation, just with a fix to make it work with non-v0/v1 Go modules. That said, go.mod files will always have pseudo version strings for dependencies to our staging repositories. It might be possible to make it work, but that needs a bit more of changes, and it's probably not worth it.

/assign @xrstf

On-behalf-of: @SAP [email protected]
Signed-off-by: Marko Mudrinić <[email protected]>
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 5, 2025
Copy link

@xrstf xrstf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2025
@kcp-ci-bot
Copy link

LGTM label has been added.

Git tree hash: d4846b5381b91b2532785be0dc78aaf2bca72b39

@kcp-ci-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xrstf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 5, 2025
@kcp-ci-bot kcp-ci-bot merged commit dc535dc into kcp-dev:master Nov 5, 2025
6 checks passed
@xmudrii xmudrii deleted the fix-tag-logic-2 branch November 5, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants