Typed `Result.Platforms`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start in types.go at Result.Platforms and compare the referenced ocispecs.Platform definition in the image-spec descriptor.go. Trace how platforms are represented and formatted, then confirm that the typed result can expose OSVersion and OSFeatures while producing the platform strings shown in the issue.
Written by the indexing model from the issue text.
Description
Instead of a slice of strings in https://github.com/docker/go-imageinspect/blob/0c562e4bbd718916ca2b13e81af3b410d6e1bf52/types.go#L30
It would be better to have typed platforms []ocispecs.Platform https://github.com/opencontainers/image-spec/blob/2fb996805b3734779bf9a3a84dc9a9691ad7efdd/specs-go/v1/descriptor.go#L52-L72 so we could have OSVersion, OSFeatures.
String representation could then be:
- linux/ppc64le
- linux/amd64
- linux/386
- linux/s390x
- linux/riscv64
- linux/arm64
- linux/arm/v7
- linux/arm/v6
- windows/amd64:10.0.17763.2300
- windows/amd64:10.0.14393.4770
- Dominant language
- Go
- Stars
- 15
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/go-imageinspect
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
docker/go-imageinspect#21 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
docker/go-imageinspect#14 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
docker/go-imageinspect#13 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
docker/go-imageinspect#11 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
docker/go-imageinspect#10 ·
All issues in docker/go-imageinspect
Similar issues
-
priority: low 🌱 type: enhancement 💅🏼
Difficulty 2/5 Half a day Newbie friendliness 84/100
nebari-dev/llm-serving-pack#199 ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area/helm kind/bug priority/backlog triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
lexfrei/cloudflare-tunnel-gateway-controller#889 ·
Maintainers usually reply within 1 day
-
bug difficulty: beginner documentation good first issue help wanted localization
Difficulty 1/5 Under an hour Newbie friendliness 90/100
wavefnd/wave-platform#140 ·
-
compiler/runtime
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day