Skip to content

fix(vendor): correct k8s-launch-kit vendor path casing - #2158

Merged
mchmarny merged 1 commit into
mainfrom
fix/vendor-launch-kit-path-casing
Aug 11, 2026
Merged

mchmarny merged 1 commit into
mainfrom
fix/vendor-launch-kit-path-casing

Conversation

@rorajani

Copy link
Copy Markdown
Contributor

Summary

Rename the stray vendored spectrumx_device.go from vendor/github.com/NVIDIA/k8s-launch-kit/... to the correct lowercase module path vendor/github.com/nvidia/k8s-launch-kit/... so the merge-gate vendor sync check passes again on Linux.

Motivation / Context

13f6057d (chore: dep upgrade) bumped github.com/nvidia/k8s-launch-kit from a case-insensitive macOS checkout. Because vendor/github.com/NVIDIA/ already existed for k8s-operator-libs, the new file was recorded under the wrong case. On Linux CI, go mod vendor writes the lowercase path and the tracked capital path becomes an extraneous deletion, so tests / Test fails with:

vendor/ is out of sync with go.mod/go.sum; run 'make tidy' and commit go.mod, go.sum, and vendor/

This is already red on main and blocks every PR branched from it (including #2061).

Fixes: N/A
Related: #2061

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Build/CI/tooling

Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)
  • API server (cmd/aicrd, pkg/server)
  • Recipe engine / data (pkg/recipe)
  • Bundlers (pkg/bundler, pkg/component/*)
  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)
  • Validator (pkg/validator)
  • Core libraries (pkg/errors, pkg/k8s)
  • Docs/examples (docs/, examples/)
  • Other: vendor/ path casing for github.com/nvidia/k8s-launch-kit

Implementation Notes

Pure index rename (same blob, 0-byte content diff). No Go source changes. No references to the affected helper in first-party code.

Verified on a case-sensitive APFS volume: parent commit reproduces the CI deletion; this rename makes go mod vendor + git diff --exit-code vendor/ clean.

Testing

# Case-sensitive volume reproduction + guard
hdiutil create -type SPARSE -fs 'Case-sensitive APFS' -size 8g -volname aicrcs /tmp/aicrcs.dmg
# clone branch onto /Volumes/aicrcs, then:
go mod vendor && git diff --exit-code vendor/

Also confirmed capital launch-kit tracked files: 0; lowercase: 48.

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert
  • Medium — Touches multiple components or has broader impact
  • High — Breaking change, affects critical paths, or complex rollout

Rollout notes: N/A — unblocks merge-gate for all open PRs once landed. After merge, rebase #2061 onto main.

Checklist

  • Tests pass locally (make test with -race)
  • Linter passes (make lint)
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are cryptographically signed (git commit -S) — GPG signing info

The dep upgrade in 13f6057 was committed from a case-insensitive
filesystem, so spectrumx_device.go landed under vendor/github.com/NVIDIA/
while the module path is lowercase github.com/nvidia/k8s-launch-kit. On
Linux CI, go mod vendor writes the lowercase path and the tracked capital
one becomes extraneous, failing the vendor sync guard on main and every
branch cut from it.

Signed-off-by: Rohit Rajani <[email protected]>
@rorajani
rorajani requested a review from a team as a code owner August 11, 2026 14:31
@rorajani rorajani added the theme/ci-dx CI pipelines, developer experience, and build tooling label Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Recipe evidence check

No leaf overlays affected by this PR.

This gate is warning-only and never blocks merge.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report ✅

Metric Value
Coverage 82.8%
Threshold 80%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-82.8%25-brightgreen)

No Go source files changed in this PR.

@mchmarny
mchmarny merged commit aa6d5c5 into main Aug 11, 2026
69 of 70 checks passed
@mchmarny
mchmarny deleted the fix/vendor-launch-kit-path-casing branch August 11, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS theme/ci-dx CI pipelines, developer experience, and build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants