Skip to content

cleanup: remove vestigial kodata directories - #9227

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
creydr:remove-kodata-symlinks
Jul 22, 2026
Merged

cleanup: remove vestigial kodata directories#9227
knative-prow[bot] merged 1 commit into
knative:mainfrom
creydr:remove-kodata-symlinks

Conversation

@creydr

@creydr creydr commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove all kodata/ directories from cmd/ — they contained only symlinks (HEAD, refs, LICENSE) pointing outside the kodata root
  • The knative.dev/pkg/changeset package no longer reads these files; it uses Go's built-in debug.ReadBuildInfo() / vcs.revision instead
  • ko v0.10+ rejects symlinks that resolve outside the kodata root, so these symlinks block upgrading setup-ko from v0.9 to v0.10 (see build(deps): bump the github-actions group across 1 directory with 4 updates #9225)

The kodata directories contained symlinks to .git/HEAD, .git/refs, and
the repo root LICENSE. These were used by the old knative.dev/pkg/changeset
package to embed git revision info into container images at build time.

That package now uses Go's built-in debug.ReadBuildInfo() / vcs.revision
instead, and no code reads these kodata files. Additionally, ko v0.10+
rejects symlinks that resolve outside the kodata root, so these symlinks
block upgrading setup-ko from v0.9 to v0.10.
@knative-prow knative-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 22, 2026
@knative-prow
knative-prow Bot requested review from Cali0707 and pierDipi July 22, 2026 09:53
@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2026
@creydr

creydr commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

/cc @Cali0707

Should help with kind e2e in #9225

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.05%. Comparing base (5411419) to head (dfb10e3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9227      +/-   ##
==========================================
- Coverage   51.05%   51.05%   -0.01%     
==========================================
  Files         411      411              
  Lines       22142    22142              
==========================================
- Hits        11305    11304       -1     
- Misses       9961     9964       +3     
+ Partials      876      874       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Cali0707 Cali0707 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2026
@knative-prow

knative-prow Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, creydr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot merged commit 648661d into knative:main Jul 22, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants