Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-5062

`suppress-native-package` and `allow-native-package` flags to handle native modules

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.4
    • None
    • Dynamic plugins
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Previously, the CLI failed with a message that native modules are not supported.

      This update introduces two new CLI flags that help dynamic plugin developers handle native modules. Both flags accept a list of packages. The `--suppress-native-package` flag does not require the native module at runtime. It replaces the native module with an empty package that displays an error. The `--allow-native-package` flag instructs the CLI to allow the native package during checks, and tests a plugin that uses a native module.


      Show
      Previously, the CLI failed with a message that native modules are not supported. This update introduces two new CLI flags that help dynamic plugin developers handle native modules. Both flags accept a list of packages. The `--suppress-native-package` flag does not require the native module at runtime. It replaces the native module with an empty package that displays an error. The `--allow-native-package` flag instructs the CLI to allow the native package during checks, and tests a plugin that uses a native module.
    • Bug Fix
    • Done
    • RHDH Dynamic Plugins 3266

      Description of problem:

      Reported on this slack thread.

      When updating the techdocs-backend wrapper to the new CLI behavior (here) the following error occurs:

      Error: Dynamic plugins do not support native plugins. the following native modules have been transitively detected:
       - cpu-features
      

      and the package export-dynamic-plugin command fails.

      Steps to Reproduce

      Run yarn workspace backstage-plugin-techdocs-dynamic export-dynamic:clean on this PR

      Actual results:

      The error as mentioned above and the export fails.

      Expected results:

      Dynamic plugin export succeeds

      Reproducibility (Always/Intermittent/Only Once):

      Always

              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: