Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make platform errors less cryptic #39

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

AkihiroSuda
Copy link
Member

Fix #36

New output:

$ diffoci diff alpine:3.18.2 alpine:3.18.3
INFO[0000] Target platforms: [darwin/amd64]
INFO[0000] Pulling "docker.io/library/alpine:3.18.2" for additional platforms ([darwin/amd64])
docker.io/library/alpine:3.18.2                 saved
└──index (82d1e9d7ed48)                         already exists
Pulling from OCI Registry (docker.io/library/alpine:3.18.2)     elapsed: 2.0 s  total:  1.6 Ki  (839.0 B/s)
INFO[0002] Pulling "docker.io/library/alpine:3.18.3" for additional platforms ([darwin/amd64])
docker.io/library/alpine:3.18.3                 saved
└──index (7144f7bab3d4)                         already exists
Pulling from OCI Registry (docker.io/library/alpine:3.18.3)     elapsed: 0.9 s  total:  1.6 Ki  (1.7 KiB/s)
ERRO[0002] image 0 is not available for the requested platform: unavailable (Hint: specify `--platform` explicitly, e.g., `--platform=linux/amd64`)

Fix isssue 36

New output:
```console
$ diffoci diff alpine:3.18.2 alpine:3.18.3
INFO[0000] Target platforms: [darwin/amd64]
INFO[0000] Pulling "docker.io/library/alpine:3.18.2" for additional platforms ([darwin/amd64])
docker.io/library/alpine:3.18.2                 saved
└──index (82d1e9d7ed48)                         already exists
Pulling from OCI Registry (docker.io/library/alpine:3.18.2)     elapsed: 2.0 s  total:  1.6 Ki  (839.0 B/s)
INFO[0002] Pulling "docker.io/library/alpine:3.18.3" for additional platforms ([darwin/amd64])
docker.io/library/alpine:3.18.3                 saved
└──index (7144f7bab3d4)                         already exists
Pulling from OCI Registry (docker.io/library/alpine:3.18.3)     elapsed: 0.9 s  total:  1.6 Ki  (1.7 KiB/s)
ERRO[0002] image 0 is not available for the requested platform: unavailable (Hint: specify `--platform` explicitly, e.g., `--platform=linux/amd64`)
```

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda AkihiroSuda merged commit 53a2607 into reproducible-containers:master Nov 28, 2023
3 checks passed
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.

Platform unavailable error
1 participant