lima-vm / lima-vm/lima

Provide the size of the disk image, along with the checksum and url

Open
#1,586 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

### Description

I know that one can ask the server, but maybe it is down or slow.

When we automate the checksumming ("digest"), we could have it populate the byte size as well ?

```yaml
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/22.10/release-20230413/ubuntu-22.10-server-cloudimg-amd64.img"
arch: "x86_64"
size: 762445824
digest: "sha256:d46438111d7a6dfcdfb2e1fb76762a79d56f09dc308cc9ab2300effc0078fd5b"
- location: "https://cloud-images.ubuntu.com/releases/22.10/release-20230413/ubuntu-22.10-server-cloudimg-arm64.img"
arch: "aarch64"
size: 739573760
digest: "sha256:e1865c2ebc531600ae6012d86fa2dae5846e7801cdcdbcf90d9c830218ef4ae9"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
- location: "https://cloud-images.ubuntu.com/releases/22.10/release/ubuntu-22.10-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/releases/22.10/release/ubuntu-22.10-server-cloudimg-arm64.img"
arch: "aarch64"
```

A disk size of "0" would just mean that we don't know, before contacting (or that the image is generic)

* https://github.com/lima-vm/lima/issues/1347

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue; start by locating the image digest/checksum population entry point and its related tests. Done means generated image metadata includes a byte size alongside the URL and checksum, using 0 when the size is unknown as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.