Summary
Daily make golint-custom surfaced a small non-largefunc cluster about package-level mutable slice/map state being reassigned, which risks shared-state leakage and data races.
Current findings: 5
Affected paths:
pkg/parser/virtual_fs.go:46 — builtinVirtualFiles
pkg/actionpins/data.go:45 — cachedActionPins
pkg/actionpins/data.go:47 — cachedActionPinsByRepo
pkg/actionpins/data.go:50 — cachedContainerPins
pkg/actionpins/data.go:52 — additional reassignment path for cachedContainerPins
Representative diagnostics:
pkg/parser/virtual_fs.go:46:2: package-level slice/map variable builtinVirtualFiles is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across calls
pkg/actionpins/data.go:45:3: package-level slice/map variable cachedActionPins is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across calls
Expected outcome
Refactor the affected code so package-level slice/map data is not reassigned in a way that creates shared mutable state hazards, while preserving existing behavior and call sites.
Remediation checklist
Copilot instructions
- Work only on the
pkg/parser/virtual_fs.go and pkg/actionpins/data.go mutable package-state findings.
- Replace whole-sale reassignment patterns with safer initialization/copy patterns.
- Keep edits local and behavior-preserving.
- Do not take on unrelated
largefunc cleanup.
- Validate with
make golint-custom before finishing.
Generated by 🧌 LintMonster · gpt54 · 29.2 AIC · ⌖ 4.25 AIC · ⊞ 6K · ◷
Summary
Daily make golint-custom still shows package-level mutable slice/map state being reassigned, which risks shared-state leakage and data races.
Current findings: 13
Affected paths:
pkg/parser/virtual_fs.go:46 — builtinVirtualFiles
pkg/actionpins/data.go:45 — cachedActionPins
pkg/actionpins/data.go:47 — cachedActionPinsByRepo
pkg/actionpins/data.go:50 and :52 — cachedContainerPins
pkg/workflow/engine_definition.go:433 — knownEngineImports
pkg/workflow/model_aliases.go:93 — builtinOnlyAliasMap
pkg/workflow/runtime_definitions.go:242 — allManifestFilesBaseCache
pkg/workflow/samples_validation.go:172 — sortedSafeOutputFieldNames
pkg/cli/model_costs.go:50 and :73 — modelPriceRecords
pkg/cli/update_version_labels.go:73 and :86 — versionLabelCache
Representative diagnostics:
pkg/parser/virtual_fs.go:46:2: package-level slice/map variable builtinVirtualFiles is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across calls
pkg/actionpins/data.go:45:3: package-level slice/map variable cachedActionPins is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across calls
pkg/cli/model_costs.go:73:5: package-level slice/map variable modelPriceRecords is mutated via append() re-assignment; mutating shared package state risks data races and can leak state across calls
Expected outcome
Refactor the affected code so package-level slice/map data is not mutated in shared-state patterns, while preserving behavior and existing callers.
Remediation checklist
Copilot instructions
- Work only on the listed package-level mutable-state findings.
- Replace whole-sale reassignment, append reassignment, and index assignment patterns with safer initialization/copy patterns.
- Keep edits local and behavior-preserving.
- Do not take on unrelated
largefunc cleanup.
- Validate with
make golint-custom before finishing.> Generated by 🧌 LintMonster · gpt54 · 33.2 AIC · ⌖ 6.66 AIC · ⊞ 6K · ◷
Summary
Daily
make golint-customsurfaced a small non-largefunccluster about package-level mutable slice/map state being reassigned, which risks shared-state leakage and data races.Current findings: 5
Affected paths:
pkg/parser/virtual_fs.go:46—builtinVirtualFilespkg/actionpins/data.go:45—cachedActionPinspkg/actionpins/data.go:47—cachedActionPinsByRepopkg/actionpins/data.go:50—cachedContainerPinspkg/actionpins/data.go:52— additional reassignment path forcachedContainerPinsRepresentative diagnostics:
pkg/parser/virtual_fs.go:46:2: package-level slice/map variable builtinVirtualFiles is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across callspkg/actionpins/data.go:45:3: package-level slice/map variable cachedActionPins is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across callsExpected outcome
Refactor the affected code so package-level slice/map data is not reassigned in a way that creates shared mutable state hazards, while preserving existing behavior and call sites.
Remediation checklist
make golint-customafter changes.Copilot instructions
pkg/parser/virtual_fs.goandpkg/actionpins/data.gomutable package-state findings.largefunccleanup.make golint-custombefore finishing.Summary
Daily
make golint-customstill shows package-level mutable slice/map state being reassigned, which risks shared-state leakage and data races.Current findings: 13
Affected paths:
pkg/parser/virtual_fs.go:46—builtinVirtualFilespkg/actionpins/data.go:45—cachedActionPinspkg/actionpins/data.go:47—cachedActionPinsByRepopkg/actionpins/data.go:50and:52—cachedContainerPinspkg/workflow/engine_definition.go:433—knownEngineImportspkg/workflow/model_aliases.go:93—builtinOnlyAliasMappkg/workflow/runtime_definitions.go:242—allManifestFilesBaseCachepkg/workflow/samples_validation.go:172—sortedSafeOutputFieldNamespkg/cli/model_costs.go:50and:73—modelPriceRecordspkg/cli/update_version_labels.go:73and:86—versionLabelCacheRepresentative diagnostics:
pkg/parser/virtual_fs.go:46:2: package-level slice/map variable builtinVirtualFiles is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across callspkg/actionpins/data.go:45:3: package-level slice/map variable cachedActionPins is mutated via wholesale re-assignment; mutating shared package state risks data races and can leak state across callspkg/cli/model_costs.go:73:5: package-level slice/map variable modelPriceRecords is mutated via append() re-assignment; mutating shared package state risks data races and can leak state across callsExpected outcome
Refactor the affected code so package-level slice/map data is not mutated in shared-state patterns, while preserving behavior and existing callers.
Remediation checklist
make golint-customafter changes.Copilot instructions
largefunccleanup.make golint-custombefore finishing.> Generated by 🧌 LintMonster · gpt54 · 33.2 AIC · ⌖ 6.66 AIC · ⊞ 6K · ◷