Skip to content

Fix dependencies for the cli staging repo#3702

Merged
kcp-ci-bot merged 1 commit intokcp-dev:mainfrom
xmudrii:fix-pb-deps
Nov 6, 2025
Merged

Fix dependencies for the cli staging repo#3702
kcp-ci-bot merged 1 commit intokcp-dev:mainfrom
xmudrii:fix-pb-deps

Conversation

@xmudrii
Copy link
Member

@xmudrii xmudrii commented Nov 6, 2025

Summary

It turns out that you have to specify dependencies of dependencies in the publishing-bot rules otherwise publishing-bot would fail to update direct dependencies. That's because those direct dependencies are already updated to the latest tag, and when some repo tries to pull that updated direct dependency, that fails because dependencies of direct dependency are updated.

Why that happens: it's because publishing-bot does not push to GitHub until the very end of the process. Instead, it creates modules and puts them to the cache ($GOPATH/pkg/mod/cache/download) manually, so commands such go mod download actually work. But for this, you need to also set GOPRIVATE environment variables to a list of repositories that are not yet publicly available. publishing-bot generates the value of GOPRIVATE based on specified dependencies, and that's why you have to provide all dependencies and not only direct dependencies.

A good example of that in upstream is sample-cli-plugin:

What Type of PR Is This?

/kind chore

Release Notes

NONE

/assign @xrstf @embik

On-behalf-of: @SAP marko.mudrinic@sap.com
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@kcp-ci-bot kcp-ci-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Nov 6, 2025
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. kind/chore Categorizes issue or PR as related to maintenance and other usually non-code changes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 6, 2025
Copy link
Member

@embik embik 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 6, 2025
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

DetailsGit tree hash: 3ce9436211cd7363d57e7ef72a172bf603d8c810

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik

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

The pull request process is described here

Details 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 6, 2025
@xmudrii
Copy link
Member Author

xmudrii commented Nov 6, 2025

/test pull-kcp-test-e2e-sharded

@kcp-ci-bot kcp-ci-bot merged commit db8096d into kcp-dev:main Nov 6, 2025
14 checks passed
@xmudrii xmudrii deleted the fix-pb-deps branch November 6, 2025 17:29
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. kind/chore Categorizes issue or PR as related to maintenance and other usually non-code changes. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants