Эх сурвалжийг харах

add /target/ to .gitignore files for all crates (#4217)

* add /target/ to .gitignore files for all crates

* shellcheck
Rob Walker 6 жил өмнө
parent
commit
a80176496d

+ 0 - 3
.gitignore

@@ -1,13 +1,10 @@
 /book/html/
 /book/html/
 /book/src/img/
 /book/src/img/
 /book/src/tests.ok
 /book/src/tests.ok
-/core/target/
 /farf/
 /farf/
-/ledger-tool/target/
 /solana-release/
 /solana-release/
 solana-release.tar.bz2
 solana-release.tar.bz2
 /target/
 /target/
-/wallet/target/
 
 
 **/*.rs.bk
 **/*.rs.bk
 .cargo
 .cargo

+ 1 - 0
bench-streamer/.gitignore

@@ -0,0 +1 @@
+/target/

+ 14 - 0
ci/nits.sh

@@ -38,3 +38,17 @@ if _ git grep 'Default::default()' -- '*.rs'; then
     exit 1
     exit 1
 fi
 fi
 
 
+# Let's keep a .gitignore for every crate, ensure it's got
+#  /target/ in it
+declare gitignores_ok=true
+for i in $(git ls-files \*/Cargo.toml ); do
+  dir=$(dirname "$i")
+  if [[ ! -f $dir/.gitignore ]]; then
+      echo 'error: nits.sh .gitnore missing for crate '"$dir" >&2
+      gitignores_ok=false
+  elif ! grep -q -e '^/target/$' "$dir"/.gitignore; then
+      echo 'error: nits.sh "/target/" apparently missing from '"$dir"'/.gitignore' >&2
+      gitignores_ok=false
+  fi
+done
+"$gitignores_ok"

+ 1 - 0
client/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
core/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
drone/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
fullnode/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
genesis/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
gossip/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
install/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
keygen/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
kvstore/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
ledger-tool/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
logger/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
metrics/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
netutil/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/bpf/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/bpf_loader/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/budget_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/budget_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/config_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/config_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/exchange_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/exchange_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/failure_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/noop_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/stake_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/stake_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/storage_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/storage_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/token_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/token_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/vote_api/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
programs/vote_program/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
replicator/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 1
runtime/.gitignore

@@ -1 +1 @@
-target/
+/target/

+ 1 - 0
sdk/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
upload-perf/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
vote-signer/.gitignore

@@ -0,0 +1 @@
+/target/

+ 1 - 0
wallet/.gitignore

@@ -0,0 +1 @@
+/target/