You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- pkg/cargo/kilnfile.go: UpdateBOSHReleaseTarballLockWithName now forces
lock.Name to match the name argument (and rejects an empty name),
instead of trusting the caller's lock.Name — a mismatch could silently
insert/rename the wrong entry.
- internal/commands/carvel_helpers.go: downloadCarvelRelease reuses
cargo.KilnfileLock.FindBOSHReleaseWithName instead of re-implementing
the same linear scan. writeStandardKilnfileLock only tolerates a
missing lockfile (os.IsNotExist) now — a permissions/IO error used to
be silently treated the same as "no lockfile", risking overwriting one
we simply failed to read. It also reuses
UpdateBOSHReleaseTarballLockWithName instead of duplicating the upsert
loop.
- internal/commands/carvel_upload.go: no longer misattributes a
Kilnfile-side load failure (e.g. an unresolved variable(...) call) to
Kilnfile.lock — checks the Kilnfile in isolation first.
- internal/commands/carvel_bake.go: corrected a log message that said
"No Kilnfile/Kilnfile.lock found" when only the lockfile's absence is
actually confirmed.
- internal/carvel/baker.go:
- generateRuntimeConfigs's hook validation error is now mode-specific
(pre-install/post-install), matching generateBoshReleaseDir's error,
via a shared hookModeGroups() helper.
- The synthesized hook script no longer execs the raw base.yml command
string unquoted. shellQuoteCommand splits it into words and
single-quotes each one before rejoining, so shell metacharacters in a
hook command can't be interpreted by the generated script.
- internal/acceptance/carvel/carvel_workflow_test.go: Step 3 was missing
--from-lockfile, so it silently baked from source instead of
exercising the Artifactory-download path it's supposed to test; its
GetCount assertion was commented out (referencing an undeclared
variable) rather than fixed. Added --from-lockfile and restored a
working assertion.
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments