Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,11 @@ func TestApkAdd_DepChecksums(t *testing.T) {
buildName := tests.AlpineBuildName + "-dep-checksums"
buildNumber := "1"

// curl may already be installed by an earlier test in this suite (e.g. TestApkAdd_BasicBuildInfo),
// which would make the "apk add curl" below a no-op that downloads nothing — leaving the
// dependencies with no local .apk archive to compute checksums from. Force a real download.
_ = exec.Command("apk", "del", "curl").Run()

jfrogCli := coretests.NewJfrogCli(execMain, "jfrog", "")
err := jfrogCli.Exec("apk", "add", "curl",
"--build-name="+buildName, "--build-number="+buildNumber,
Expand Down
Loading