Skip to content

Commit 375b261

Browse files
refactor(alpine): use ListInstalledPackages for pre-snapshot in ApkCommand
Replace ParseAlpineInstalledDB with the new ListInstalledPackages helper that runs "apk list --installed". This is consistent with the refactor in build-info-go/build/utils/alpine.go. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 253a56d commit 375b261

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

artifactory/commands/alpine/apkcommand.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ func (c *ApkCommand) Run() error {
9494
// --- Phase 1: pre-exec ---
9595
var preSnapshot []biUtils.AlpinePackage
9696
if needsBuildInfo {
97-
preSnapshot, err = biUtils.ParseAlpineInstalledDB(biUtils.AlpineInstalledDB)
97+
preSnapshot, err = biUtils.ListInstalledPackages()
9898
if err != nil {
99-
log.Warn("[WARN] Cannot read Alpine package database — Build Info not captured:", err)
99+
log.Warn("[WARN] Cannot list installed packages — Build Info not captured:", err)
100100
needsBuildInfo = false
101101
}
102102
}

0 commit comments

Comments
 (0)