Unverified Commit ef76db45 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] remove preinstalled possibly conflicting software from PATH in CI jobs (#4463)

* remove preinstalled possibly conflicting software from PATH in CI jobs

* preserve pandoc
parent 48257d45
...@@ -39,12 +39,24 @@ function Remove-From-Path { ...@@ -39,12 +39,24 @@ function Remove-From-Path {
# remove some details that exist in the GitHub Actions images which might # remove some details that exist in the GitHub Actions images which might
# cause conflicts with R and other components installed by this script # cause conflicts with R and other components installed by this script
$env:RTOOLS40_HOME = "" $env:RTOOLS40_HOME = ""
Remove-From-Path ".*Amazon.*"
Remove-From-Path ".*Anaconda.*"
Remove-From-Path ".*android.*"
Remove-From-Path ".*Android.*"
Remove-From-Path ".*chocolatey.*" Remove-From-Path ".*chocolatey.*"
Remove-From-Path ".*Chocolatey.*" Remove-From-Path ".*Chocolatey.*"
Remove-From-Path ".*Git.*mingw64.*" Remove-From-Path ".*\\Git\\.*"
Remove-From-Path "(?!.*pandoc.*).*hostedtoolcache.*"
Remove-From-Path ".*Microsoft SDKs.*"
Remove-From-Path ".*mingw.*"
Remove-From-Path ".*msys64.*" Remove-From-Path ".*msys64.*"
Remove-From-Path ".*PostgreSQL.*"
Remove-From-Path ".*\\R\\.*"
Remove-From-Path ".*R Client.*"
Remove-From-Path ".*rtools40.*" Remove-From-Path ".*rtools40.*"
Remove-From-Path ".*shells.*"
Remove-From-Path ".*Strawberry.*" Remove-From-Path ".*Strawberry.*"
Remove-From-Path ".*tools.*"
Remove-Item C:\rtools40 -Force -Recurse -ErrorAction Ignore Remove-Item C:\rtools40 -Force -Recurse -ErrorAction Ignore
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment