Skip to content

Commit

Permalink
remove autogenerated cargo config before installing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 22, 2024
1 parent 6a36252 commit b935739
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tutorials/gn/gn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ exit_on_error true
mkdir tutorials/gn/third_party_tools
cd tutorials/gn/third_party_tools
# depot_tools contains the following things we need:
# 1. A cross-platform ninja wrapper script
# 2. cipd, a tool to download a prebuilt GN binary
Expand All @@ -46,6 +48,10 @@ else
exec --fail-on-error ln -s Cargo.toml.crates-io fuchsia/tools/cargo-gnaw/Cargo.toml
end
# Unfortunately this (autogenerated, not-checked-in) file needs to be removed for the next install to work correctly.
# There is currently no way to override cargo config inheritance.
rm ../.cargo/config
# Install GNaw locally in the bin directory (alongside GN)
exec --fail-on-error cargo install --path fuchsia/tools/cargo-gnaw --root .
Expand Down

0 comments on commit b935739

Please sign in to comment.