fix: replace kodata LICENSE symlinks with actual files#10358
Conversation
ko v0.19.0 introduced strict enforcement that kodata symlinks must not resolve outside the kodata root (ko-build/ko#1619). The existing LICENSE -> ../../../LICENSE symlinks in all cmd/*/kodata/ directories resolve to the repo root, which ko now rejects when tarring for any non-kind registry (including CI). Replace the symlinks with actual copies of the LICENSE file. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
/kind misc |
|
cc @khrm CI is failing |
ko v0.19.0 introduced two breaking changes: 1. Strict kodata symlink enforcement (ko-build/ko#1619) 2. A YAML encoder error when a label selector filters all documents in a file (fixed in ko-build/ko fix-empty-docnodes-encoder-close) Pin to v0.18.1 as a temporary workaround until ko releases a fixed version. The kodata symlinks are also fixed in this branch. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
We need to revert dcf4889 after my fix in |
|
/retest |
|
/retest |
| with: | ||
| version: v0.18.1 |
There was a problem hiding this comment.
Do we need to pin to v0.18.1 given that links have been replaced with files?
It's probably good to pin in any case, but shouldn't we able to pin v0.19 then?
There was a problem hiding this comment.
Yes, for now until ko with ko-build/ko#1694 is released
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: waveywaves The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick release-v1.3.x release-v1.6.x release-v1.9.x release-v1.12.x |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #10387 Please review and merge the cherry-pick PR. |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #10385 Please review and merge the cherry-pick PR. |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #10386 Please review and merge the cherry-pick PR. |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #10388 Please review and merge the cherry-pick PR. |
ko v0.19.0 introduced strict enforcement that kodata symlinks must not resolve outside the kodata root (ko-build/ko#1619). The existing LICENSE -> ../../../LICENSE symlinks in all cmd/*/kodata/ directories resolve to the repo root, which ko now rejects when tarring for any non-kind registry (including CI).
Replace the symlinks with actual copies of the LICENSE file.
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepFixes #10357
Release Notes