google / google/go-containerregistry

crane: pull hangs (container v0.21.6)

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

Description

### Describe the bug

Pulling hangs for some images in v0.21.6 while v0.21.4 works

### To Reproduce
This hangs:
```
time docker run --rm gcr.io/go-containerregistry/crane:v0.21.6 pull gcr.io/go-containerregistry/crane/debug:v0.21.6 /tmp/pull
```

The old version worked:
```
time docker run --rm gcr.io/go-containerregistry/crane:v0.21.4 pull gcr.io/go-containerregistry/crane/debug:v0.21.6 /tmp/pull
```

Result from time:
```
real 0m13.023s
user 0m0.022s
sys 0m0.05
```

### Expected behavior

The download finishes as in v0.21.4

### Additional context

docker run --rm gcr.io/go-containerregistry/crane/debug:v0.21.6 version
53f7e39e15bfd6aeea6a5f733ee1a8fcf54c15cf

The download worked in v0.21.5, too

Contributor guide

Open the contributing guide

Research direction

Reproduce the hang with the crane:v0.21.6 and crane/debug:v0.21.6 command, then compare it with v0.21.5 and v0.21.4. Trace the pull path and changes between those versions to isolate the regression. Done means the v0.21.6 pull completes successfully as it does in the older versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.