-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 Remove dependency on cli
module and bump dependencies in cli
and sdk
#3146
Conversation
…ckage Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
cli
module and bump dependencies in cli
and sdk
cli
module and bump dependencies in cli
and sdk
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
cli
module and bump dependencies in cli
and sdk
cli
module and bump dependencies in cli
and sdk
/approve |
[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 |
/lgtm |
LGTM label has been added. Git tree hash: ee5207b3faf532400592a478441c5f9137ba9248
|
/retest looks like a flake. |
Summary
Since kcp 0.24.0, the new
cli
package is creating a bit of a problem because its a dependency ofgithub.com/kcp-dev/kcp
, but most users would not import it. Thus, the version fromgo.mod
is used for dependency resolution, which is an invalid one:kcp/go.mod
Line 17 in f4297bd
To avoid having a
replace
directive in every project that importsgithub.com/kcp-dev/kcp
, I've moved the small API surface used ingithub.com/kcp-dev/kcp
(the main module) togithub.com/kcp-dev/kcp/sdk
, a module that both modules depend on anyway.This still means that to build a project from
github.com/kcp-dev/kcp
, you must havegithub.com/kcp-dev/kcp/sdk
as a dependency as well, but that seems to be the more likely case.In addition, this PR bumps the
cli
andsdk
modules to be in sync with the changes done to the main module in #3140.After that, I also ran into the issue that we are using a KCP
apigen
from v0.21.0 (so quite an old one), so I've changed that logic to use theapigen
that is present in the repository right now. It doesn't make much sense to me to keep using this from previous releases.Related issue(s)
Fixes #
Release Notes