google / google/go-containerregistry

crane: pull hangs on certain images on 0.21.6

Open
#2,345 1 comment 2 reactions 0 assignees View on GitHub
bug lifecycle/stale
Dominant language
Go
Stars
4k
Forks
686
Avg merge
2d 12h
Merged PRs (30d)
26

Description

### Describe the bug

Crane hangs indefinitely when trying to pull certain larger images. This only happens on 0.21.6, not on 0.21.5 version of Crane.

### To Reproduce

Run this command: `crane pull cgr.dev/chainguard/go:latest test.tar`

### Expected behavior

We should successfully pull the image and turn it into a tar, but it hangs indefinitely.

### Additional context

Add any other context about the problem here.

- Output of `crane version`: 0.21.6
- Registry used: cgr.dev/chainguard/

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `crane pull cgr.dev/chainguard/go:latest test.tar` with Crane 0.21.6, then compare its behavior with 0.21.5. Trace the pull path responsible for larger images and use the reported registry and version details to narrow the regression. Done means the command completes and produces the expected tar instead of hanging indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.