Skip to content

Release a go mod version (with no replace) #126261

@hunshcn

Description

@hunshcn

What would you like to be added?

The go.mod content of k8s.io/kubernetes contains the replace directive, which makes it cumbersome to import it (requires replace k8s.io/*).

When we release a new version, is it possible to release a version for go mod k/k, e.g. v1.29.7-mod.

Since it's already been released, it would be possible to have k8s.io/* use the corresponding version instead of replace, like in v1.29.7, use

require k8s.io/api v0.29.7

I tried it and it works fine hunshcn@72b15e5
(current usage is replace k8s.io/kubernetes => github.com/hunshcn/kubernetes v1.29.7-mod)

I know that k/api's v0.29.7 was created according to k/k's v1.29.7, so I propose to create a new v1.29.7-mod to use v0.29.7.

This seems like something that should be done by test-infra, but since it's related to the main repository, it's posted here

Why is this needed?

This can be helpful in certain scenarios where you need to import k/k, such as scheduling-framework.

OR make scheduling-framework out of k/k ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/architectureCategorizes an issue or PR as relevant to SIG Architecture.sig/releaseCategorizes an issue or PR as relevant to SIG Release.sig/schedulingCategorizes an issue or PR as relevant to SIG Scheduling.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions