Skip to content

Use system temp directory for temporary font downloads instead of $HOME - #69

Closed
Marius Storhaug (MariusStorhaug) with Copilot wants to merge 3 commits into
mainfrom
copilot/use-temp-directory-for-font-downloads
Closed

Use system temp directory for temporary font downloads instead of $HOME#69
Marius Storhaug (MariusStorhaug) with Copilot wants to merge 3 commits into
mainfrom
copilot/use-temp-directory-for-font-downloads

Conversation

Copilot AI commented May 17, 2026

Copy link
Copy Markdown
Contributor

Temporary download directories created by Install-NerdFont use $HOME as the base path. If the command fails before cleanup runs, these directories persist in the user's home folder where no OS-level cleanup reclaims them.

  • Switch base path from $HOME to [System.IO.Path]::GetTempPath() — cross-platform .NET API resolving to $Env:TEMP (Windows) / /tmp (Linux/macOS)
# Before
$tempPath = Join-Path -Path $HOME -ChildPath "NerdFonts-$guid"

# After
$tempPath = Join-Path -Path ([System.IO.Path]::GetTempPath()) -ChildPath "NerdFonts-$guid"

GUID naming and clean block logic unchanged.

Copilot AI changed the title [WIP] Use system temp directory for font downloads instead of $HOME Use system temp directory for temporary font downloads instead of $HOME May 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSON Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Marius Storhaug (MariusStorhaug) added a commit that referenced this pull request Aug 8, 2026
….1.19 (#91)

NerdFonts now runs its CI and documentation builds through
Process-PSModule v6.1.19, with dependency compatibility and
documentation links aligned so contributors get reliable build, test,
and site-generation results.

## Changed: CI and documentation builds

The repository now uses the latest Process-PSModule release and builds
the documentation site with Zensical. The site build remains enabled,
and no contributor action is required beyond the existing workflow and
documentation conventions.

## Fixed: build and test compatibility

Dependency bounds, canonical documentation links, temporary download
paths, and cache-fallback coverage now match the current pipeline
expectations. The workflow passes only the API key it needs instead of
inheriting all repository secrets.

---
<details>
<summary>Technical details</summary>

- Updated `.github/workflows/Process-PSModule.yml` to Process-PSModule
v6.1.19 and explicit `APIKey` wiring.
- Updated `actions/checkout` to v7.0.1 in `Update-FontsData.yml`.
- Replaced `.github/mkdocs.yml` with `.github/zensical.toml`; the site
build is enabled in `.github/PSModule.yml`.
- Updated `Fonts` and `Admin` dependency minimums and maximum bounds in
`Install-NerdFont.ps1`.
- Switched font downloads to the system temporary directory.
- Replaced mocked cache-fallback behavior with a live locked-file
scenario.
- Added trailing slashes to canonical documentation links and added the
missing contribution/documentation guidance.
- Standards and framework alignment:

| Changed surface | Standards checked | Framework docs checked | Result
|
| --- | --- | --- | --- |
| `.github/workflows/**` | GitHub Actions, secret handling |
Process-PSModule workflow contract | Aligned |
| `.github/zensical.toml` | Documentation configuration |
Process-PSModule site pipeline | Aligned |
| `src/**`, `tests/**` | PowerShell dependencies, testing |
Process-PSModule source/test checks | Aligned |
| `README.md`, `CONTRIBUTING.md` | Documentation | Repository
contribution guidance | Aligned |

- Issue convergence sweep: reviewed related open work and incorporated
the system temporary-directory and README documentation changes in this
delivery.

</details>

<details>
<summary>Relevant issues (or links)</summary>

- PSModule/Process-PSModule#444 — wildcard `MaximumVersion` parsing was
tracked upstream; current Process-PSModule releases include the upstream
fix.
- #69 — system temporary directory for font downloads.
- #85 — README documentation link.

</details>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Pattern Description
^src/ Matches files where path matches this pattern
^README\.md$ Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the copilot/use-temp-directory-for-font-downloads branch August 8, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use system temp directory for temporary font downloads instead of $HOME

2 participants