Skip to content

Fix import on cmdcat command.go#4535

Merged
efiacor merged 1 commit into
kptdev:mainfrom
Nordix:fix-kpt-build-renamed-import
May 21, 2026
Merged

Fix import on cmdcat command.go#4535
efiacor merged 1 commit into
kptdev:mainfrom
Nordix:fix-kpt-build-renamed-import

Conversation

@liamfallon
Copy link
Copy Markdown
Contributor

This PR fixes an incorrect import that breaks the kpt build.

Signed-off-by: liamfallon <liam.fallon@est.tech>
Copilot AI review requested due to automatic review settings May 21, 2026 08:54
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit a8aa293
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a0ec85f43bd640008b2ac9a
😎 Deploy Preview https://deploy-preview-4535--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working go Pull requests that update Go code labels May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a build-breaking import in the cmdcat command by switching from a removed/invalid internal import to the canonical args utility package.

Changes:

  • Replace the internal/util/argutil import with pkg/lib/util/args and update the call site accordingly.
  • Minor test refactor to use integer range iteration.
  • Remove now-unneeded github.com/docker/distribution entries from go.sum.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
thirdparty/cmdconfig/commands/cmdcat/cmdcat.go Updates symlink resolution to use pkg/lib/util/args (fixes broken import).
thirdparty/cmdconfig/commands/cmdcat/cmdcat_test.go Refactors a file-generation loop to use for i := range 500.
go.sum Cleans up unused github.com/docker/distribution checksum entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dosubot dosubot Bot added the lgtm label May 21, 2026
@efiacor efiacor merged commit 4cf70f1 into kptdev:main May 21, 2026
19 checks passed
@efiacor efiacor deleted the fix-kpt-build-renamed-import branch May 21, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update Go code lgtm size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants