Skip to content

Commit 9e87388

Browse files
authored
Fix issue with installing from ORAS registry (#1063)
1 parent 961d582 commit 9e87388

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- #996: Ensure COS commands execute in exec under a dedicated, isolated context
1515
- #1002: When listing configured repositories, only show the TokenAuthMethod when a token is defined.
1616
- #1024: Modules with PythonWheels have wheels packaged correctly under -export-python-deps
17+
- #1061: Fix issue when installing from OCI/ORAS registries
1718

1819
## [0.10.5] - 2026-01-15
1920

src/cls/IPM/Repo/Oras/PackageService.cls

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,17 @@ Method ListModules(pSearchCriteria As %IPM.Repo.SearchCriteria) As %ListOfObject
252252
// collect all versions for this package in tList
253253
do ..ListModulesFromTagString(tVersionExpression, client, pSearchCriteria, package, .tList)
254254
}
255-
} else {
256-
// Endpoint failed, but if the name is specified, still try to find it
255+
}
256+
// Endpoint failed, but if the name is specified, still try to find it
257+
if tList.Count()=0 {
257258
set name = pSearchCriteria.Name
258259
if (name '= "") {
259260
if ..Namespace '= "" {
260261
set name = ..AppendURIs(..Namespace, name)
261262
}
262263
do ..ListModulesFromTagString(tVersionExpression, client, pSearchCriteria, name, .tList)
263-
} else {
264-
// otherwise error out
264+
} elseif response.StatusCode '= 200 {
265+
// If no name is specified and the /v2/_catalog endpoint failed, error out
265266
set msg = "Error: Call to /v2/_catalog endpoint failed. This registry may not support it."
266267
set msg = msg _ $char(10,13) _ "Response Code: "_response.StatusCode _ " - " _ response.ReasonPhrase
267268
$$$ThrowStatus($$$ERROR($$$GeneralError, msg))

0 commit comments

Comments
 (0)