Skip to content

Commit 5dea310

Browse files
authored
Fix cargo vendor usage to work with workspaces
Using `Cargo.full.toml` instead of `Cargo.toml` upset `cargo vendor`: ``` $ cargo vendor -s Cargo.full.toml > config.tmp error: package `differential-datalog/rust/template/cmd_parser/Cargo.toml` is a member of the wrong workspace expected: differential-datalog/rust/template/Cargo.full.toml actual: differential-datalog/rust/template/Cargo.toml ```
1 parent e57bf6c commit 5dea310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ before_deploy:
113113
# Include Rust dependencies for offline build
114114
- cd rust/template
115115
- cat Cargo.toml `find ../../lib/ -name "*.toml"` > Cargo.full.toml
116+
- cp Cargo.full.toml Cargo.toml
116117
# Set relative path to vendor directory in `.cargo/config`
117-
- cargo vendor -s Cargo.full.toml > config.tmp
118+
- cargo vendor -s Cargo.toml > config.tmp
118119
- if [ `uname -s` = Darwin ]; then ghead -n -1 config.tmp > config; else head -n -1 config.tmp > config; fi
119120
- echo "directory = \"vendor\"" >> config
120121
- cp -r vendor "../../$DIST_DIR/"

0 commit comments

Comments
 (0)