Skip to content

fix(load): remove unused filepath import - #641

Merged
tampakrap merged 1 commit into
crossplane:mainfrom
tampakrap:theo/test_fix_filepath_import
Dec 2, 2026
Merged

tampakrap merged 1 commit into
crossplane:mainfrom
tampakrap:theo/test_fix_filepath_import

Conversation

@tampakrap

Copy link
Copy Markdown
Collaborator

Description of your changes

Two PRs were merged almost simultaneously but silently collided:

Each PR passed on its own but together they leave the path/filepath import unused in loader.go.

I have:

  • Read and followed Crossplane's contribution process.
  • Read and followed Crossplane's AI policy and confirmed a human stands behind this PR.
  • Run ./nix.sh flake check to ensure this PR is ready for review.
  • Added or updated unit tests.
  • Linked a PR or a docs tracking issue to document this change.
  • Added backport release-x.y labels to auto-backport this PR.

Need help with this checklist? See the cheat sheet.

Two PRs were merged almost simultaneously but silently collided:
- crossplane#574 moved the document loading out of loader.go
- crossplane#636 replaced the remaining filepath.Ext with filesystem.IsYAML

Each PR passed on its own but together they leave the path/filepath
import unused in loader.go.

Signed-off-by: Theo Chatzimichos <tampakrap@gmail.com>
@tampakrap
tampakrap requested review from a team and jcogilvie as code owners December 2, 2026 13:46
@tampakrap
tampakrap requested review from a team, haarchri and negz and a balanced review from Copilot and removed request for a team December 2, 2026 13:46

@haarchri haarchri 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 👯

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 were identified for the change removing the unused path/filepath import.

No open issues 🎉

What changed in this PR

Fixes a Go compilation error caused by the combined changes in #574 and #636.

Changes:

  • Removes the unused path/filepath import without changing loader behavior.
File Description
pkg/​load/​loader.go Removes the obsolete import to restore compilation.

Review effort: Balanced

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.57%. Comparing base (d105f4a) to head (8e0f12d).
⚠️ Report is 3 commits behind head on main.

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

@tampakrap
tampakrap merged commit aa3c28a into crossplane:main Dec 2, 2026
12 checks passed
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.

3 participants