Skip to content

Use main pseudo-versions for the api and root modules - #4891

Merged
efiacor merged 1 commit into
kptdev:mainfrom
Nordix:fix-main-build-pseudo-versions
Nov 24, 2026
Merged

efiacor merged 1 commit into
kptdev:mainfrom
Nordix:fix-main-build-pseudo-versions

Conversation

@Catalin-Stratulat-Ericsson

@Catalin-Stratulat-Ericsson Catalin-Stratulat-Ericsson commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix the broken build on main by requiring pseudo-versions of the api and root modules from the head of main, instead of the last releases.

Motivation

#4829 added kptfilev1.IsKustomization (api) and pkg/lib/krmvalidate (root), but go.mod and cli/go.mod still require the last releases, which contain neither. So main fails to build and every code PR fails CI.

#4829 only passed because it was developed with the in-repo replace directives enabled. They are commented out on main because the release workflows reject them.

Change

No replace is enabled. Go back to released versions once the next api and root releases containing #4829 are tagged.

Testing

On a fresh clone of main with this change, make fix vet fmt lint passes in all three modules, and go test ./... passes in the root and cli modules. I didn't run make test-docker locally.

AI usage

I have used AI in the creation of this PR.

I have used the following AI tools:

  • Kiro (Claude Sonnet 5.5) to investigate the failing run, trial the go.mod change in a fresh clone, and run the build, lint and tests

I have reviewed the change and can explain it independently of the tool.

Main has not built since kptdev#4829. That change added
kptfilev1.IsKustomization to the api module and the krmvalidate package
to the root module, but go.mod and cli/go.mod still require the last
released api (v1.1.1-pre.2) and root (v1.0.2-pre.4), which contain
neither. The in-repo replace directives that hide this are commented
out on main so that the release workflows' check-go-mod-replace passes.

Require pseudo-versions of both modules from the head of main instead
of enabling the replace directives:

- go.mod: api -> v1.1.1-pre.2.0.20261119080405-30c899905853
- cli/go.mod: api -> the same version, root -> v1.0.2-pre.4.0.20261119080405-30c899905853

Go to the released versions again once the next api and root releases
that contain kptdev#4829 are tagged.

Assisted-by: Kiro:claude-sonnet-5.5
Signed-off-by: Catalin-Stratulat-Ericsson <catalin.stratulat@ericsson.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 15:25
@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kptdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4dc5a58
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6b05ac72bf8838bf39bfe792
😎 Deploy Preview https://deploy-preview-4891--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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the dependency-version and checksum updates.

No open issues 🎉

What changed in this PR

This PR addresses the build failures introduced after #4829 by pinning kpt’s API and root dependencies to pseudo-versions at commit 30c899905853, which include the required KRM validation functionality.

Changes:

  • Update the root and CLI modules to use the newer API, and the CLI to use the newer root module.
  • Replace the corresponding checksums without enabling local replace directives, preserving release-workflow compatibility.
File Description
go.sum Update checksums for the API pseudo-version.
go.mod Require the API version containing IsKustomization.
cli/​go.sum Update checksums for the root and API pseudo-versions.
cli/​go.mod Require root and API versions containing the needed KRM validation code.

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@efiacor
efiacor merged commit 909caaa into kptdev:main Nov 24, 2026
27 checks passed
@efiacor
efiacor deleted the fix-main-build-pseudo-versions branch November 24, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants