For discussion of Alpine Linux development and developer support

Re: [alpine-devel] apk fetch --recursive broken in >= v3.7

Roger Newman
Details
Message ID
<6dab720f-84a7-756a-c6f7-e0a9686536c1@riseup.net>
Sender timestamp
1512412797
DKIM signature
missing
Download raw message
Hi Dean,

without "--recursive" you will not fetch the packages dependencies. Take a look at an example from v3.6 where it works as expected.
I choose docker this time because of its dependencies.

## without --recursive

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/  docker
Downloading docker-17.05.0-r0


## with --recursive

/ # apk fetch --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories --output /tmp/ -R docker
Downloading device-mapper-libs-2.02.168-r3
Downloading libressl2.5-libcrypto-2.5.5-r0
Downloading libseccomp-2.3.2-r0
Downloading musl-1.1.16-r14
Downloading busybox-1.26.2-r9
Downloading ca-certificates-20161130-r2
Downloading iptables-1.6.1-r0
Downloading libmnl-1.0.4-r0
Downloading libnftnl-libs-1.0.7-r0


As you can see, only docker it self get fetched.

/ # apk fetch --help
...
Fetch options:
  -L, --link              Create hard links if possible
  -R, --recursive         Fetch the PACKAGE and all its dependencies
  --simulate              Show what would be done without actually doing it
  -s, --stdout            Dump the .apk to stdout (incompatible with -o, -R, --progress)
  -o, --output DIR        Directory to place the PACKAGEs to


-- 
Roger Newman


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---