Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-272

Manually added resolutions override resolutions added by --suppress-native-package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.6.0
    • 1.6.0
    • Dynamic Plugins
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Manually added resolutions override resolutions added by `--suppress-native-package`

      Earlier, the `export-dynamic-plugin` command did not overwrite manually added resolutions, which could result in incorrect package dependencies in the exported dynamic plugin.

      With this update, the `package export-dynamic-plugin` overwrites manually added resolutions, ensuring backstage dependencies are hoisted and native dependencies are suppressed from the exported dynamic plugin.
      Show
      = Manually added resolutions override resolutions added by `--suppress-native-package` Earlier, the `export-dynamic-plugin` command did not overwrite manually added resolutions, which could result in incorrect package dependencies in the exported dynamic plugin. With this update, the `package export-dynamic-plugin` overwrites manually added resolutions, ensuring backstage dependencies are hoisted and native dependencies are suppressed from the exported dynamic plugin.
    • Bug Fix
    • Done
    • RHDH Dynamic Plugins 3271

      Description of problem:

      When trying to adjust dependencies for the rhdh build to work with node 23, it turns out that adding a resolution for a native dependency breaks the resolution that's created by package export-dynamic-plugin --suppress-native-package. From the behavior it appears the CLI doesn't add the resolution to the embedded empty package that is used to erase the native code.

      Steps to Reproduce

      Add "cpu-features": "0.0.10"} to the root rhdh package.json, then also add this same resolution to {{dynamic-plugins/wrappers/backstage-plugin-techdocs-backend-dynamic. The export-dynamic script will then fail with the "you're embedding a native module" error.

              stlewis_2 Stan Lewis
              stlewis_2 Stan Lewis
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: