diplodoc-platform / diplodoc

Entrypoint to Diplodoc platform
MIT License
185 stars 7 forks source link

Synchronize Dependencies Installed in Nested Modules with --no-workspaces to the Main Metapackage #24

Open martyanovandrey opened 1 month ago

martyanovandrey commented 1 month ago

Problem: In the package architecture that uses gitmodules, when a new dependency is installed using --no-workspaces in a nested module (dependent repository without workspaces), the main metapackage is not updated with this new dependency. This leads to inconsistencies, causing the metapackage to use outdated dependencies while nested modules have newer versions.

Proposed solution: Create a GitHub Action that detects when a new dependency has been installed with --no-workspaces in any nested module and then updates the same dependency in the main metapackage.

Steps to Implement:

  1. Create a GitHub Action workflow file (.github/workflows/sync-dependencies.yml).
  2. Set up triggers for the action when package.json files in the nested modules are updated.
  3. Define steps to update the dependencies in the main metapackage accordingly.
  4. Commit and push the changes to keep both the nested modules and the metapackage in sync.