Repository navigation
Use main pseudo-versions for the api and root modules - #4891
Merged
Merged
Conversation
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>
Catalin-Stratulat-Ericsson
requested review from
efiacor,
kispaljr,
liamfallon and
mozesl-nokia
as code owners
November 24, 2026 15:25
✅ Deploy Preview for kptdocs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
🟢 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
replacedirectives, 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
|
aravindtga
approved these changes
Nov 24, 2026
efiacor
approved these changes
Nov 24, 2026
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
Fix the broken build on
mainby requiring pseudo-versions of theapiand root modules from the head ofmain, instead of the last releases.Motivation
#4829 added
kptfilev1.IsKustomization(api) andpkg/lib/krmvalidate(root), butgo.modandcli/go.modstill require the last releases, which contain neither. Somainfails to build and every code PR fails CI.#4829 only passed because it was developed with the in-repo
replacedirectives enabled. They are commented out onmainbecause the release workflows reject them.Change
go.mod,cli/go.mod:apiand the root module now use pseudo-versions of30c8999(head ofmain), as suggested by @efiacor in Remove the WASM function runtime #4885.go.sum,cli/go.sum: checksums for the new versions.No
replaceis enabled. Go back to released versions once the nextapiand root releases containing #4829 are tagged.Testing
On a fresh clone of
mainwith this change,make fix vet fmt lintpasses in all three modules, andgo test ./...passes in the root andclimodules. I didn't runmake test-dockerlocally.AI usage
I have used AI in the creation of this PR.
I have used the following AI tools:
go.modchange in a fresh clone, and run the build, lint and testsI have reviewed the change and can explain it independently of the tool.