Skip to content

Commit e01b04c

Browse files
bnarasclaude
andcommitted
Clean up stray vendor directory at package root during build
On Windows (winbuilder), the tar extraction of vendored Rust crates creates a vendor/ directory at the package root, causing an R CMD check NOTE. Add rm -Rf ../vendor to both Makevars.in and Makevars.win to ensure it is cleaned up after the build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb50dcc commit e01b04c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Makevars.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ $(STATLIB):
5353
fi
5454
rm -Rf $(CARGOTMP)
5555
rm -Rf $(VENDOR_DIR)
56+
rm -Rf ../vendor
5657
rm -Rf $(LIBDIR)/build
5758

5859
clean_intermediate: $(SHLIB)

src/Makevars.win

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ $(STATLIB):
3434
cargo build -j 2 --target $(TARGET) --lib --offline --release --manifest-path ./rust/Cargo.toml --target-dir $(TARGET_DIR)
3535
rm -Rf $(CARGOTMP)
3636
rm -Rf $(VENDOR_DIR)
37+
rm -Rf ../vendor
3738
rm -Rf $(LIBDIR)/build
3839

3940
clean_intermediate: $(SHLIB)

0 commit comments

Comments
 (0)