From de648401b4ca700deb1bfbb9e2faca5fd5443bb7 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:47:31 -0500 Subject: [PATCH 1/2] Ignore .DS_Store files. (#1022) --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 07d58fe0..ede6aafe 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ localdata/ # Unnecessary test data test_crates/**/Cargo.lock + +# Ignore macOS metadata files +**/.DS_Store From 4e88a598f000a0b2309be3668cb7ee9ea3f4d7fd Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:04:15 -0500 Subject: [PATCH 2/2] The macOS `head` binary doesn't support `-1` so switch to `sed`. (#1023) --- scripts/regenerate_test_rustdocs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/regenerate_test_rustdocs.sh b/scripts/regenerate_test_rustdocs.sh index 1ae67e7c..84ec8ba1 100755 --- a/scripts/regenerate_test_rustdocs.sh +++ b/scripts/regenerate_test_rustdocs.sh @@ -96,8 +96,7 @@ for crate_pair; do popd pushd "$PLACEHOLDER_DIR" - head -n -1 Cargo.toml >Cargo.toml.trunc - mv Cargo.toml.trunc Cargo.toml + sed -i '' '$d' Cargo.toml cargo add --path "../../../test_crates/$crate" $METADATA_CMD >"$metadata" popd