Skip to content

Commit 48bc082

Browse files
committedFeb 14, 2017
Auto merge of rust-lang#39728 - eddyb:vendeur-tres-bien, r=alexcrichton
Automate vendoring by invoking cargo-vendor when building src dist tarballs. This avoids rust-lang#39633 bringing the `src/vendor` checked into git by rust-lang#37524, past 200,000 lines of code. I believe the strategy of having rustbuild run `cargo vendor` during the `dist src` step is sound. However, the only way to be sure `cargo-vendor` exists is to run `cargo install --force cargo-vendor`, which will recompile it every time (not passing `--force` means you can't tell between "already exists" and "build error"). ~~This is quite suboptimal and I'd like to somehow do it in each `Dockerfile` that would need it.~~ * [ ] Cache `CARGO_HOME` (i.e. `~/.cargo`) between CI runs * `bin/cargo-vendor` and the actual caches are the relevant bits * [x] Do not build `cargo-vendor` all the time * ~~Maybe detect `~/.cargo/bin/cargo-vendor` already exists?~~ * ~~Could also try to build it in a `Dockerfile` but do we have `cargo`/`rustc` there?~~ * Final solution: check `cargo install --list` for a line starting with `cargo-vendor ` cc @rust-lang/tools
2 parents 55013cd + d29f0bc commit 48bc082

File tree

355 files changed

+106
-39932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

355 files changed

+106
-39932
lines changed
 

‎.travis.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,24 @@ matrix:
4747
install: &osx_install_sccache >
4848
curl -L https://api.pub.build.mozilla.org/tooltool/sha512/d0025b286468cc5ada83b23d3fafbc936b9f190eaa7d4a981715b18e8e3bf720a7bcee7bfe758cfdeb8268857f6098fd52dcdd8818232692a30ce91039936596 |
4949
tar xJf - -C /usr/local/bin --strip-components=1
50+
- env: >
51+
RUST_CHECK_TARGET=check
52+
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
53+
SRC=.
54+
os: osx
55+
osx_image: xcode8.2
56+
install: *osx_install_sccache
5057
5158
- env: >
52-
SCRIPT="./x.py test && ./x.py dist"
59+
RUST_CHECK_TARGET=dist
5360
RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended"
5461
SRC=.
5562
DEPLOY=1
5663
os: osx
5764
osx_image: xcode8.2
58-
install: *osx_install_sccache
65+
install: >
66+
curl -L https://api.pub.build.mozilla.org/tooltool/sha512/d0025b286468cc5ada83b23d3fafbc936b9f190eaa7d4a981715b18e8e3bf720a7bcee7bfe758cfdeb8268857f6098fd52dcdd8818232692a30ce91039936596 |
67+
tar xJf - -C /usr/local/bin --strip-components=1 && brew uninstall --ignore-dependencies openssl && brew install openssl --universal --without-test
5968
- env: >
6069
RUST_CHECK_TARGET=dist
6170
RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended"

‎appveyor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ environment:
1717

1818
# MSVC cargotest
1919
- MSYS_BITS: 64
20-
NO_VENDOR: 1
2120
RUST_CHECK_TARGET: check-aux
2221
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
2322

0 commit comments

Comments
 (0)
Please sign in to comment.