Skip to content

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented May 19, 2020

files.h/files.cpp:

  • Add end and else comments to all macros.
  • Add "remove_all_inside" function which empties a directory without actually deleting the directory. This is necessary to handle the case where the directory is actually a directory symlink.
  • Change remove_all to use std::remove when VCPKG_USE_STD_FILESYSTEM is set; this will engage POSIX delete support available on current Win10.

commands.ci.cpp: empty "installed".

*/initialize_environment.*: No longer clean the directories outside the tool.

ci-step.ps1: Remove unused console output tee-ing.

Fixes #11395 (hopefully)

…ide vcpkg itself.

files.h/files.cpp:
* Add end and else comments to all macros.
* Add "remove_all_inside" function which empties a directory without actually deleting the directory. This is necessary to handle the case where the directory is actually a directory symlink.
* Change remove_all to use std::remove when VCPKG_USE_STD_FILESYSTEM is set; this will engage POSIX delete support available on current Win10.

commands.ci.cpp: empty "installed", "packages", and "buildtrees".

*/initialize_environment.*: No longer clean the directories outside the tool.

* ci-step.ps1: Remove unused console output tee-ing.
…leaned down the line. Test that the installed directory is a directory before attempting to clean.
@@ -4,29 +4,20 @@

# Sets up the environment for MacOS runs of vcpkg CI

rm -rf installed || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this okay? Don't we still need to remove this before vcpkg ci?

Copy link
Member Author

@BillyONeal BillyONeal May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillyONeal BillyONeal merged commit 3b0080e into microsoft:master May 19, 2020
@BillyONeal BillyONeal deleted the clean_in_tool branch May 19, 2020 20:43
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
…ide vcpkg itself. (microsoft#11432)

`files.h/files.cpp`:
* Add end and else comments to all macros.
* Add "remove_all_inside" function which empties a directory without actually deleting the directory. This is necessary to handle the case where the directory is actually a directory symlink.
* Change remove_all to use std::remove when VCPKG_USE_STD_FILESYSTEM is set; this will engage POSIX delete support available on current Win10.

`commands.ci.cpp`: empty "installed".

`*/initialize_environment.*`: No longer clean the directories outside the tool.

`ci-step.ps1`: Remove unused console output tee-ing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:infrastructure Pertaining to the CI/Testing infrastrucutre
Projects
None yet
Development

Successfully merging this pull request may close these issues.

initialize-environment.ps1 failing windows builds
3 participants