Skip to content

Commit

Permalink
Merge branch 'main' into add-get-package
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Sep 21, 2024
2 parents ecf55a8 + 64b07ca commit 0597c32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AnyPackage.Pkgx.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class PkgxProvider : PackageProvider, IFindPackage, IGetPackage, IInstallPackage
[void] InstallPackage([PackageRequest] $request) {
if ($request.Version -and $request.Version.MinVersion -ne $request.Version.MaxVersion) {
throw 'pkgx does not support version ranges, use only exact versions.'
}
elseif ($request.Version) {
} elseif ($request.Version) {
$version = $request.Version.MinVersion
$name = '{0}@{1}' -f $request.Name, $version
} elseif ($request.Name.Contains('@')) {
Expand Down

0 comments on commit 0597c32

Please sign in to comment.