linkerd2/proxy
Brian Smith d38a2acff8
Avoid `cargo fetch --locked` in proxy/Dockerfile. (#593)
`cargo fetch` doesn't consider the target platform and downloads
all crates needed to build for any target.

Stop using `cargo fetch` and instead use the implicit fetch done
by `cargo build`, which *does* consider the target platform.

This change results in 12 (soon 15) fewer crates downloaded.
This is a non-trivial savings in build time for a full rebuild
since cargo downloads crates in parallel.

```diff
- Downloading bitflags v1.0.1
- Downloading fuchsia-zircon v0.3.3
- Downloading fuchsia-zircon-sys v0.3.3
- Downloading miow v0.2.1
- Downloading redox_syscall v0.1.37
- Downloading redox_termios v0.1.1
- Downloading termion v1.5.1
- Downloading winapi v0.3.4
- Downloading winapi-i686-pc-windows-gnu v0.4.0
- Downloading winapi-x86_64-pc-windows-gnu v0.4.0
- Downloading wincolor v0.1.6
- Downloading ws2_32-sys v0.2.1
```

I verified that no downloads are done during an incremental
build.

Signed-off-by: Brian Smith <brian@briansmith.org>
2018-03-21 08:51:18 -10:00
..
controller-grpc Turn off the `use_logging` default feature of quickcheck. (#465) 2018-02-26 16:04:58 -10:00
convert Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
futures-mpsc-lossy Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
router Proxy: Upgrade h2 and indexmap crates (#572) 2018-03-14 12:35:38 -07:00
src proxy: add SIGTERM and SIGINT handlers (#581) 2018-03-16 18:53:20 -07:00
tests proxy: add SIGTERM and SIGINT handlers (#581) 2018-03-16 18:53:20 -07:00
Cargo.toml proxy: add SIGTERM and SIGINT handlers (#581) 2018-03-16 18:53:20 -07:00
Dockerfile Avoid `cargo fetch --locked` in proxy/Dockerfile. (#593) 2018-03-21 08:51:18 -10:00