Skip to content

Commit

Permalink
Ignore errors from "rush purge"
Browse files Browse the repository at this point in the history
- Workaround for microsoft/rushstack#4334
  • Loading branch information
mikeharder committed Sep 16, 2023
1 parent fd2663c commit 0f81d29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/pipelines/jobs/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ steps:

# Unlink node_modules folders to significantly improve performance of subsequent tasks
# which need to walk the directory tree (and are hardcoded to follow symlinks).
- script: node common/scripts/install-run-rush.js purge

# Append "|| cd ." to command to ignore errors (works on both Windows and Linux) as a workaround
# for microsoft/rushstack#4334.
- script: node common/scripts/install-run-rush.js purge || cd .
displayName: "Purge dependencies"
continueOnError: true # Some issue with deleting common/temp/rush-recycler folder on linux. This doesn't matter for the next steps.
condition: always()

# It's important for performance to pass "packages" as "searchFolder" to avoid looking under root "node_modules".
Expand Down

0 comments on commit 0f81d29

Please sign in to comment.