Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create temp folder for resources to use and clean up afterwards #617

Open
SteveL-MSFT opened this issue Dec 18, 2024 · 0 comments
Open

Create temp folder for resources to use and clean up afterwards #617

SteveL-MSFT opened this issue Dec 18, 2024 · 0 comments
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage

Comments

@SteveL-MSFT
Copy link
Member

Summary of the new feature / enhancement

Similar to how Pester provides a testdrive to tests that get cleaned up afterwards, it may be useful to provide a temp location for resources which get cleaned up once dsc is completed execution

Proposed technical implementation details (optional)

Rather than passing as a parameter, since this is global and unique per resource (for debugging, we could have a mode where it doesn't clean up), it may be easiest to have dsc create a unique folder under the user temp location and pass it to the resource via the env var DSC_TEMP_PATH. So this env var is unique and provided at the start of the process. An adapter would either allow all its resources to use the same location or modify it per resource.

@SteveL-MSFT SteveL-MSFT added Issue-Enhancement The issue is a feature or idea Needs Triage labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

No branches or pull requests

1 participant