WIP: The prior commit (51133b5) on this PR added the cachePath constant but never updated the three call sites that still used the raw "/cache" literal. I replaced all three: the two corev1.VolumeMount MountPath fields (in buildBackupJob and b
#3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "hermes-repair/sonar-AZ9pTqVcN0JrBQvDGDs3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
{
"artifacts": [
"commit
f21833eon branch hermes-repair/sonar-AZ9pTqVcN0JrBQvDGDs3"],
"blockers": [],
"changed_files": [
"internal/k8s/job_manifests.go"
],
"findings": [
"Prior commit
51133b5only added the cachePath const and never replaced any of the three /cache literal call sites, despite its commit message claiming it did \u2014 this commit completes that work.","gofmt and
go test ./internal/k8s/...could not be run: nogo/gofmtbinary and no reachable Docker daemon in this sandbox. Change was verified by manual inspection (simple literal-to-identifier substitution, same indentation/formatting)."],
"status": "completed",
"summary": "The prior commit (
51133b5) on this PR added thecachePathconstant but never updated the three call sites that still used the raw "/cache" literal. I replaced all three: the two corev1.VolumeMount MountPath fields (in buildBackupJob and buildRestoreJob) and the RESTIC_CACHE_DIR env Value in resticEnv, all in internal/k8s/job_manifests.go. This is a pure identifier substitution \u2014 no behavior change. Committed locally asf21833eon the existing branch hermes-repair/sonar-AZ9pTqVcN0JrBQvDGDs3. Verified via grep that no remaining\"/cache\"literals exist outside the const declaration itself. No Go toolchain (go/gofmt) or Docker daemon is available in this sandbox, so gofmt andgo testcould not be executed directly; the diff is a minimal same-indentation literal\u2192identifier swap that is gofmt-safe by inspection. Per the run's boundary, I do not have SCM credentials to push or update the PR \u2014 that step is left to the worker boundary/mediator.","tests_run": []
}
fix(hermes): repair sonar/soteria/go:S1192/AZ9pTqVcN0JrBQvDGDs3to WIP: The prior commit (51133b5) on this PR added the `cachePath` constant but never updated the three call sites that still used the raw "/cache" literal. I replaced all three: the two corev1.VolumeMount MountPath fields (in buildBackupJob and bCheckout
From your project repository, check out a new branch and test the changes.