PowerShell / PowerShell/DSC

Create temp folder for resources to use and clean up afterwards

Open
#617 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement Needs Triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.