Starting v3 release for plugin developers. #1240
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starting v3 release for plugin developers.
Per this Go modules doc a repo or branch that's
already tagged v2 or higher should increment the major
version (e.g. go to v3) when releasing their first Go
module-based packages. Since v2.0.3 is already
tagged,
go mod
used in the context of a Go plugindeveloper will default to that version, and 2.0.3
is incompatible with plugins. The fix for this is to
start a v3 series.
At the moment, the kustomize repo has these top level
packages in the sigs.k8s.io/kustomize module:
cmd
- holds main program for kustomizeConceivably someone can depend on this
package for integration tests.
internal
- intentionally unreleased subpackagesk8sdeps
- an adapter wrapping k8s dependenciesThis exists only for use in pre-Go-modules kustomize-into-kubectl
integration and won't live much longer (as everything involved is
switching to Go modules).
pkg
- kustomize packages for exportThis should shrink in later versions, since
the surface area is too large, containing
sub-packages that should be in 'internal'.
plugin
- holds main programs for pluginsThis PR changes the top level go.mod file from
to
and adjusts all import statements to
reflect the change.
After this, externally developed plugins should be able to depend
on v3 (via their own
go.mod
file) and get the right immediate and transitive deps.