APK does not report errors when adding a package to existing virtual package
In the example below I install imagemagick package with the unsatisfiable constraint (non-existing version), I don’t get any error when I specify an existing virtual package.
$ docker run --rm -ti alpine:3.9 sh
/ # apk add --update -t .virtual findutils
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/2) Installing findutils (4.6.0-r1)
(2/2) Installing .virtual (0)
Executing busybox-1.29.3-r10.trigger
OK: 6 MiB in 16 packages
/ # apk add --update imagemagick=7.0.7.39-r0
ERROR: unsatisfiable constraints:
imagemagick-7.0.8.23-r0:
breaks: world[imagemagick=7.0.7.39-r0]
/ # apk add --update -t .virtual imagemagick=7.0.7.39-r0
OK: 6 MiB in 16 packages
(from redmine: issue id 9969, created on 2019-02-08)