Refactor prepareVendorFiles cleanup return pattern
#2366 · Go · ★ 184 · Apache-2.0 · updated 2mo ago
What happens prepareVendorFiles in internal/cli/vendor.go returns a three-value tuple: (vendorFileBundle, func(), error). Callers must remember to invoke the cleanup function on success and on some error paths. The same package and repo use mixed patterns for deferred cleanup —…
replies in ~0h7/7 outside PRs mergedmaintainer left guidancepoints at a filehas CONTRIBUTINGsomeone tried before
Cleared 1m ago