]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Cleanup cargo registry before each Rust-enabled build
authorrl1987 <rl1987@sdf.lonestar.org>
Sun, 31 Mar 2019 13:58:32 +0000 (16:58 +0300)
committerteor <teor@torproject.org>
Mon, 1 Apr 2019 04:08:12 +0000 (14:08 +1000)
Also, refrain from caching target/.

See: https://levans.fr/rust_travis_cache.html

.travis.yml

index 87780bb1a65b7549640c41f60a2196b5048dfb56..4b2a1ffd7a0ed867ce2729fc16e7ea93a40dc178 100644 (file)
@@ -5,8 +5,9 @@ cache:
   ## cargo: true
   directories:
     - $HOME/.cargo
-    ## where we point CARGO_TARGET_DIR in all our cargo invocations
-    - $TRAVIS_BUILD_DIR/src/rust/target
+
+before_cache:
+  - rm -rf $HOME/.cargo/registry
 
 compiler:
   - gcc