services/binary/binary: make download install the binary after downloading it

This matters for packages that are archived directories.  Based on the
value of the new "--install" flag, download will fetch the binary and
media info under a temp location and extract to the specified
destination, or just download the binary and media info as the specified
destination.  For installation, if the binary is a regular file, a hard
link (or copy) is created to the temp location. If it's an archive, it
gets extracted.

While at it, we also change the tar extraction logic in the packages
library to work with intermediary directories.

Change-Id: I58b1681a5cdc824bd4557706538d07a313ebec82
8 files changed
tree: dbdf548722da28881a9a6e152c1d255594792f39
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.