Skip to content

Commit d0844ac

Browse files
authored
Fix opm failure when source is GitHub (#65)
Signed-off-by: divyansh42 <[email protected]>
1 parent 99744de commit d0844ac

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/util/file-finder.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export async function findMatchingClient(source: string, client: InstallableClie
6363
// these filters are used for camel-k / kamel, which is amd64 only.
6464
filters = [ filterByOS, filterByZipped ];
6565
}
66-
else if (ClientDetailOverrides[client]?.mirror?.directoryName === "ocp") {
66+
// Since directory name for opm is ocp (in case of mirror)
67+
// but this filter pipeline is not valid for opm when source is github
68+
else if (ClientDetailOverrides[client]?.mirror?.directoryName === "ocp" && source !== GITHUB) {
6769
// the ocp directory is amd64 only,
6870
// and we have to filter out the other client we're not interested in
6971
// - ie remove 'oc' if we're installing 'openshift-install'.

0 commit comments

Comments
 (0)