Skip to content

restore: add command to restore withdrawn packages#1743

Closed
sil2100 wants to merge 2 commits intowolfi-dev:mainfrom
sil2100:add-restore-cmd
Closed

restore: add command to restore withdrawn packages#1743
sil2100 wants to merge 2 commits intowolfi-dev:mainfrom
sil2100:add-restore-cmd

Conversation

@sil2100
Copy link
Copy Markdown
Member

@sil2100 sil2100 commented Aug 29, 2025

This requires the equivalent mono feature of package restoration to get released.

Tried to follow withdraw as much as possible, but at the same time this command works a bit differently, as it ACTUALLY does the restoration on apk.cgr.dev.

Signed-off-by: Łukasz 'sil2100' Zemczak <lukasz.zemczak@chainguard.dev>
Signed-off-by: Łukasz 'sil2100' Zemczak <lukasz.zemczak@chainguard.dev>
Comment thread pkg/cli/restore.go

if len(packages) == 1 {
// Single package: use PATCH request
url := fmt.Sprintf("https://apk.cgr.dev/chainguard/%s/%s", arch, packages[0])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be able to restore chainguard (aka wolfi), chainguard-private (enterprise-package) and extra-packages so the first part of the path needs to be driven from a command line option.

@sil2100 sil2100 closed this Jan 13, 2026
@sil2100 sil2100 deleted the add-restore-cmd branch January 13, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants