Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
This is a pure rename so history follows the claim conversion code. The tree does not build at this commit: pkg/xr/claim.go still holds the generate command, whose help embed and kong wiring belong in cmd. The next commit splits the command half back out. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of your changes
This moves the shared library code under
cmd/crossplane/intopkg/. Code ininternal/(#436's diff engine, for example) can then use it without importingcmd/, and outside tools get a stable, discoverable import path. This follows the precedent ofpkg/validate.cmd/crossplane/common/crdpkg/crdcmd/crossplane/common/load(withtestutils)pkg/loadcmd/crossplane/common/resource,/xrm,/xpkgpkg/resource,/xrm,/xpkgcmd/crossplane/render, root package onlypkg/renderConvertClaimToXRandOptionsfromcmd/crossplane/xr/generate.gopkg/xr/claim.gorender xr,render op,render/contextfnand thexr generatecommand stay incmd/.The change is mechanical:
git mvplus import-path updates, and two package doc comments reworded. Nothing changes behaviour, and no label, annotation or other string value changes. It's one commit per package, so renames stay detectable andgit log --followkeeps working. Thexrmove takes two commits: the first moves the file whole, so history follows the library code, and the second puts the command half back incmd/. The tree doesn't build at that first commit, and its commit message says so.Warning
This changes import paths for modules outside this repo. There are no forwarding packages at the old paths. Known importers:
crossplane-contrib/crossplane-diff(render,xr,common/resource,xrm,common/crd) andcrossplane-contrib/xprin(render.LoadXRD). Each needs a one-line import change on its nextcli/v2bump.Raised in review of #436. Whichever of this PR and #436 merges second updates its imports. #436 also edits
render/engine*.goandcommon/load/loader.go, which this PR moves.Related: #436, #452, #453.
I have:
./nix.sh flake checkto ensure this PR is ready for review. (./nix.sh run .#testand./nix.sh run .#lintpass.)Added or updated unit tests.(pure move; the existing tests move with their packages)Linked a PR or a docs tracking issue to document this change.(no user-facing change)Addedbackport release-x.ylabels to auto-backport this PR.🤖 Generated with Claude Code