Skip to content

Commit 376269d

Browse files
authored
fix: pin keycloak-admin-client package version to 26.5.6 (#77)
* fix: pin OSL to stable/logic-operator v1.37.2 Made-with: Cursor * fix: pin keycloak-admin-client to 26.5.6 Made-with: Cursor * chore: update lockfile for keycloak-admin-client 26.5.6 Made-with: Cursor * fix: add prepack script to build dist for git deps Yarn 3 runs prepack before packing git dependencies. Without this, installing from a git branch produces a package without dist/, causing ERR_MODULE_NOT_FOUND for all exports. Made-with: Cursor * chore: remove SHA integrity hash from packageManager field Made-with: Cursor
1 parent a5fdf81 commit 376269d

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

docs/changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [1.1.26] - Current
5+
## [1.1.27] - Current
6+
7+
### Fixed
8+
9+
- **Pin `@keycloak/keycloak-admin-client` to 26.5.6**: Version 26.6.0 has a broken postinstall script that fails in CI environments with a `packageManager` field. Pinned to last known-good version.
10+
11+
## [1.1.26]
612

713
### Fixed
814

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/e2e-test-utils",
3-
"version": "1.1.26",
3+
"version": "1.1.27",
44
"description": "Test utilities for RHDH E2E tests",
55
"license": "Apache-2.0",
66
"repository": {
@@ -68,6 +68,7 @@
6868
"clean": "rm -rf dist",
6969
"lint:check": "eslint . --ignore-pattern dist --ignore-pattern README.md --ignore-pattern docs",
7070
"lint:fix": "eslint . --fix --ignore-pattern dist --ignore-pattern README.md --ignore-pattern docs",
71+
"prepack": "yarn build",
7172
"prepublishOnly": "yarn build",
7273
"prettier:check": "prettier --check . '!dist' '!README.md' '!docs' '!.github/workflows/deploy-docs.yml'",
7374
"prettier:fix": "prettier --write . '!dist' '!README.md' '!docs' '!.github/workflows/deploy-docs.yml'",
@@ -104,7 +105,7 @@
104105
"@axe-core/playwright": "^4.11.0",
105106
"@backstage-community/plugin-rbac-common": "1.23.0",
106107
"@eslint/js": "^9.39.1",
107-
"@keycloak/keycloak-admin-client": "^26.0.0",
108+
"@keycloak/keycloak-admin-client": "26.5.6",
108109
"@kubernetes/client-node": "^1.4.0",
109110
"eslint": "^9.39.1",
110111
"eslint-plugin-check-file": "^3.3.1",

src/deployment/orchestrator/install-orchestrator.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ log::success() {
105105
# Operator subscription and status
106106
# ---------------------------------------------------------------------------
107107
install_subscription() {
108-
local name=$1 namespace=$2 channel=$3 package=$4 source_name=$5 source_namespace=$6 starting_csv=${7:-}
109-
local spec_extra=""
110-
[[ -n "$starting_csv" ]] && spec_extra=" startingCSV: $starting_csv"
108+
local name=$1 namespace=$2 channel=$3 package=$4 source_name=$5 source_namespace=$6
111109
oc apply -f - << EOD
112110
apiVersion: operators.coreos.com/v1alpha1
113111
kind: Subscription
@@ -120,7 +118,6 @@ spec:
120118
name: $package
121119
source: $source_name
122120
sourceNamespace: $source_namespace
123-
${spec_extra}
124121
EOD
125122
return 0
126123
}

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ __metadata:
217217
languageName: node
218218
linkType: hard
219219

220-
"@keycloak/keycloak-admin-client@npm:^26.0.0":
221-
version: 26.4.7
222-
resolution: "@keycloak/keycloak-admin-client@npm:26.4.7"
220+
"@keycloak/keycloak-admin-client@npm:26.5.6":
221+
version: 26.5.6
222+
resolution: "@keycloak/keycloak-admin-client@npm:26.5.6"
223223
dependencies:
224224
camelize-ts: ^3.0.0
225225
url-template: ^3.1.1
226-
checksum: 973af8c11fb61d648fac7e7b767d52849dd409d1fcee33b36e72c7096e266943cbd2f8f00ebcb47bca59b2a3c106e7853ba7179c730c3eb429cbea39f7c53171
226+
checksum: 1e996590de8f191dbe616622102895b358c4e31274a7770b3bba2039fc2e64ce9a67ca6cbf6e823d39e061891c25c29b4342b199f20cc3e04937509cf3975843
227227
languageName: node
228228
linkType: hard
229229

@@ -377,7 +377,7 @@ __metadata:
377377
"@backstage-community/plugin-rbac-common": 1.23.0
378378
"@backstage/catalog-model": 1.7.5
379379
"@eslint/js": ^9.39.1
380-
"@keycloak/keycloak-admin-client": ^26.0.0
380+
"@keycloak/keycloak-admin-client": 26.5.6
381381
"@kubernetes/client-node": ^1.4.0
382382
"@playwright/test": ^1.57.0
383383
"@types/fs-extra": ^11.0.4

0 commit comments

Comments
 (0)