Create temp folder for resources to use and clean up afterwards
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 523
- Forks
- 75
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 24
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating dsc process startup and the adapter/resource execution paths, then determine how a process-wide DSC_TEMP_PATH could be created, scoped, and cleaned up. Done means resources can use the temporary location during execution and it is removed afterward, with any debugging exception defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100