-
Bug
-
Resolution: Not a Bug
-
Normal
-
1.4
-
None
Description of problem:
The following files use deprecated/non-working --production flags:
- https://github.com/janus-idp/backstage-plugins/tree/main/packages/cli/src/commands/export-dynamic-plugin/backend-embed-as-code.ts
- https://github.com/janus-idp/backstage-plugins/tree/main/packages/cli/src/commands/export-dynamic-plugin/backend-embed-as-dependencies.ts
When you run this with Yarn 3.8.6, the new default in janus showcase for 1.4, you get:
$➔ yarn install --production ➤ YN0050: The --production option is deprecated on 'install'; use 'yarn workspaces focus' instead
And nothing happens.
The --cwd flag is also no longer working, throwing this error:
$➔ yarn --cwd dist-dynamic install Ambiguous Syntax Error: Cannot find which to pick amongst the following alternatives: 0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0] 1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0] While running --cwd dist-dynamic install
Prerequisites (if any, like setup, operators/versions):
Use latest plugins repo code from main, and yarn 3.8.6
Reproducibility (Always/Intermittent/Only Once):
Always
Downstream builds are broken with this error:
[build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: Ambiguous Syntax Error: Cannot find which to pick amongst the following alternatives: [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: 0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0] [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: 1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0] [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: While running --cwd dist-dynamic install --production --network-timeout 600000 [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: ERROR: command finished with error: command (/opt/app-root/src/dynamic-plugins/wrappers/backstage-plugin-scaffolder-backend-module-gerrit-dynamic) /tmp/xfs-83e0e93f/yarn run export-dynamic exited (1)
...
[build] backstage-plugin-scaffolder-backend-module-gerrit#export-dynamic: command (/opt/app-root/src/dynamic-plugins/wrappers/backstage-plugin-scaffolder-backend-module-gerrit-dynamic) /tmp/xfs-83e0e93f/yarn run export-dynamic exited (1) [build] [build] Tasks: 67 successful, 134 total [build] Cached: 0 cached, 134 total [build] Time: 1m55.883s [build] Failed: backstage-plugin-scaffolder-backend-module-gerrit#export-dynamic [build] [build] ERROR run failed: command exited (1) [build] subprocess exited with status 1 [build] subprocess exited with status 1 [build] Error: building at STEP "RUN "$YARN" export-dynamic --filter=./dynamic-plugins/wrappers/*": exit status 1
- blocks
-
RHIDP-4211 Move the showcase main branch to yarn 3
- Closed