You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although kubebuilder follows semantic versioning as required by go modules, only versions with major version 0 or 1 are actually obtainable by version with go modules. This can be seen in the link provided above.
The solution is to use a non-existent version and use the timestamp and commit hash to refer to a specific version. For example, operator SDK uses sigs.k8s.io/kubebuilder v1.0.9-0.20201021204649-36124ae2e027 which refers to 36124ae.
In order to solve this, go.mod file needs to be changed to include /v2 at the package name (module sigs.k8s.io/kubebuilder/v2) and internal imports need to reference to this same package.
I think it should definetely be implemented for future versions. However, I'm not sure what should be done with previous v2 versions. As previous versions are released, they are tagged and have their code compressed (it would change imports).
/kind feature
The text was updated successfully, but these errors were encountered:
Description
Although kubebuilder follows semantic versioning as required by go modules, only versions with major version 0 or 1 are actually obtainable by version with go modules. This can be seen in the link provided above.
The solution is to use a non-existent version and use the timestamp and commit hash to refer to a specific version. For example, operator SDK uses
sigs.k8s.io/kubebuilder v1.0.9-0.20201021204649-36124ae2e027
which refers to 36124ae.In order to solve this,
go.mod
file needs to be changed to include/v2
at the package name (module sigs.k8s.io/kubebuilder/v2
) and internal imports need to reference to this same package.I think it should definetely be implemented for future versions. However, I'm not sure what should be done with previous v2 versions. As previous versions are released, they are tagged and have their code compressed (it would change imports).
/kind feature
The text was updated successfully, but these errors were encountered: