Skip to content

Commit

Permalink
chore: set update=none for example book submodules (#158)
Browse files Browse the repository at this point in the history
Ensures `cargo install --git` doesn't checkout the submodules, which are
only used in tests. See rust-lang/cargo#10717
  • Loading branch information
max-heller authored Jan 18, 2025
1 parent 106727c commit 585e91c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
[submodule "books/mdBook"]
path = books/mdBook
url = ../../rust-lang/mdBook.git
update = none
[submodule "books/cargo"]
path = books/cargo
url = ../../rust-lang/cargo.git
update = none
[submodule "books/rust-book"]
path = books/rust-book
url = ../../rust-lang/book.git
update = none
[submodule "books/nomicon"]
path = books/nomicon
url = ../../rust-lang/nomicon.git
update = none
[submodule "books/rust-reference"]
path = books/rust-reference
url = ../../rust-lang/reference.git
update = none
[submodule "books/rust-by-example"]
path = books/rust-by-example
url = ../../rust-lang/rust-by-example.git
update = none
[submodule "books/rustc-dev-guide"]
path = books/rustc-dev-guide
url = ../../rust-lang/rustc-dev-guide.git
update = none
[submodule "books/rust-edition-guide"]
path = books/rust-edition-guide
url = ../../rust-lang/edition-guide.git
update = none
[submodule "books/rust-embedded"]
path = books/rust-embedded
url = ../../rust-embedded/book.git
update = none
3 changes: 3 additions & 0 deletions scripts/install-ci-deps
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -e

# Checkout submodules
git submodule update --checkout --recursive

# Update apt package lists
sudo apt-get update

Expand Down

0 comments on commit 585e91c

Please sign in to comment.