apk fetch doesn't allow to fetch specific version of the package
What I need
When adding a package, I can specify a version like this:
apk add foo=1.0.0-r0
I need the same thing available with
apk fetch. Right now it's only possible to fetch a package by its name and it will always pick the highest version.
Why I need it?
I'm building my own Alpine based system running on Raspberry Pi and I'm preparing the local on-disk repo in my CI pipeline from scratch. I also have my own online repository with some official packages and some packages I created myself for my usecase.
When I'm building the on-disk repo, I need to fetch a specific version of my package from my online repo and all it's dependencies, so I can then index the whole thing and generate the repo.