You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: FileDownload cross-platform support and target-path handling (#98, #49)
- Expand PSDependMap.psd1 Supports to include core/macos/linux; no
Windows-only code was blocking cross-platform use (#98)
- Root relative Target paths against $PWD before any path operations so
callers are not burned by Split-Path against a relative string (#49)
- Replace parent-exists heuristic with file-extension check to distinguish
file targets from container targets; directory targets are now created
when they do not yet exist rather than erroring (#49)
- Fix hardcoded ";" path separator in Write-Verbose to use
[IO.Path]::PathSeparator for correctness on non-Windows
- Add four tests: existing-dir target, new-dir creation, extension-based
file-path target, and relative target rooted against $PWD
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
-`FileDownload` is now supported on all platforms (`windows`, `core`, `macos`, `linux`); there was no Windows-only code blocking this (#98).
13
+
-`FileDownload` relative `Target` paths are now rooted against `$PWD` before resolution, matching the intuitive expectation of callers (#49).
14
+
10
15
### Fixed
11
16
12
17
-`Get-Dependency -InputObject` no longer mutates the caller's hashtable:
13
18
`PSDependOptions` is now preserved after the call, so a second invocation
14
19
with the same object still honors global options such as `Target` (#35).
20
+
-`FileDownload` no longer misidentifies a directory-like `Target` (no file extension, or trailing slash) as a full file path when its parent happens to exist; the handler now uses a file-extension heuristic to distinguish file targets from container targets and creates the directory when it does not yet exist (#49).
0 commit comments