PowerShell Dependency Handler
Repo PowerShellOrg/PSDepend, read from GitHub 13 h ago. PowerShellOrg has not joined Take My Repo.
Update-PSDependLock resolves supported Dependencies<name>.lock.json.Invoke-PSDepend and Get-Dependency honor locks automatically, install-IgnoreLockResolve PSDependAction for PSGalleryModule, PSResourceGet,PSGalleryNuget, Nuget, Chocolatey and Npm: query the source and returnNpm accepts npm semver ranges and pinspackage-lock.json.Invoke-DependencyScript -PSDependTypePath is now passed through to thePSDependMap.psd1.Version field using NuGet range syntax (e.g.'[2.2.3,3.0)', '[2.0,)', '(,3.0)') for the PSGalleryModule,PSResourceGet, and PSGalleryNuget dependency types. A bare version'3.2.1') still means that exact version; a range installs theFileDownload is now supported on all platforms (windows, core,macos, linux); there was no Windows-only code blocking thisFileDownload relative Target paths are now rooted against $PWDGet-Dependency -InputObject no longer mutates the caller's hashtable:PSDependOptions is now preserved after the call, so a second invocationTargetFileDownload no longer misidentifies a directory-like Target (noGit handler no longer silently ignores a pre-existing directory atWrite-Warning so the user knows why the install was skippedGitHub zip extraction now uses Expand-Archive instead of the COMshell.application API, which failed on Server Core and otherExpand-Archive is always available (#189).Chocolatey handler is now compatible with Chocolatey 2.x: remotechoco search (in 2.0, choco list stopped--local-onlyChocolatey default feed and bootstrap script URLs updated tocommunity.chocolatey.org; fixed an undefined variable in thePSGalleryNuget "have latest" check compared version strings10.0.0 sorted below 9.0.0 and triggered needlessFileSystem missing-source errors were silenced by an operatorForce / Mirror parameters wereForce is now wired: it overwrites target files even where theTask only read Source while its help documented Target, so theGit handler stops after reporting that git is not installed insteadCommand verbose output referenced the wrong loop variable whenPSResourceGet dependency type providing first-class support forMicrosoft.PowerShell.PSResourceGet) alongside thePSGalleryModule handler (#179).InstallLocal psake task that stages files and installs the moduleCurrentUser scope from Output\, useful for validatingChocolatey dependency type with handler script and Pesterrequirements.psd1.Nuget dependency type for arbitrary NuGet feeds (not just the.exe payloads.PSGalleryModule, PSGalleryNuget, andInvoke-PSDepend, including credentialed NuGet feed search and aNuget inPSDependMap.psd1, enabling cross-platform use.SemanticVersion does not collide withSystem.Management.Automation.SemanticVersion class inSystem.Version when a version string is notAcceptLicense parameter on PSRepositoryModule and matchingAcceptLicense + AllowPrerelease plumbing on PSGalleryModule,.github/workflows/stale.yml) for issues and PRs,workflow_dispatch trigger for on-demand sweeps.CONTEXT.md documenting the PSDepend domain lexicon (Dependency,PSDependAction, etc.) for bothPowerShellBuild with GitHubbuild.ps1 (Bootstrap / StageFilesTest) rather than ad-hoc setup, so tests always import fromOutput\ and not the source tree (#171). See CLAUDE.md for theFunctionsToExport in PSDepend.psd1 is now an explicit list of*, matching PowerShell moduleNuget or PSGalleryNuget dependency is actually used, instead ofmaster to main acrossREADME, examples, the manifest's LicenseUri / ProjectUri /ReleaseNotes links, and build/CI scripts.PowerShellOrg ownership of the project.Github dependency type now allows overriding the imported nameName key, instead of always deriving it from theowner/repo slug (#121).Github version matching now accepts a vX.Y.Z tag when theX.Y.Z, so dependencies written without thev prefix resolve against the common GitHub release-tag conventionPSGalleryModule may now be invoked without an explicitRepository, in which case PSDepend defers to whatever repositoriesGet-PSRepository rather than forcingGet-Dependency operator-precedence bug when DependencyType isPSDependOptions: parenthesization was incorrect, so theFind-PSDependLocally now consults all installed versions of aImport-PSDependModule now sanitizes the version string beforeImport-Module, preventing failures when prereleasevX.Y.Z tags appear in the resolved version (#140).Chocolatey install path now passes --yes to choco install--yess), so installsGit handler now uses the full Dependency.Target path when theGit handler no longer depends on the .exe extension whengit, so it works on macOS / Linux installations where thegit.Github downloads suppress Invoke-RestMethod's progress stream,PowerShellGet package handler now forwards -Scope correctlyTarget=CurrentUser, instead of silently installing to the'latest' upgrades inPSGalleryModule and Package scripts now compares[System.Version] values rather than strings, so 10.0.0 no longer9.0.0 (#170).$null checks inrequirements.psd1 produces a zero-length name (#102).Test-Dependency and friends now emit a clearer error message*.depend.psd1 is missing, instead of the previous opaqueDotnetSdk install test now mocks Install-Dotnet so the testSave-Module may need to be rerun if aTarget directory was removed between invocationsInvoke-PSDepend help.