question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Order modules base on dependencies

See original GitHub issue

A module can depend on other modules, for example the Orders module depends on the Catalog Module.

In the module.json. We would like to add a property call dependencies

{
  "name": "cms",
  "fullName": "SimplCommerce.Module.Orders",
  "isBundledWithHost": true,
  "version": "1.0.0",
  "dependencies" : ["SimplCommerce.Module.Core", "SimplCommerce.Module.Catalog"]
}

Then a new method to sort loaded modules by dependency. For example, Core have to come before Catalog, Catalog before Orders.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hishamcocommented, Sep 17, 2018

Let me start on this …

0reactions
hishamcocommented, Aug 1, 2019

But it will be better if we can order modules as the description of this issue

Do you mean order them based on their dependencies?!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to sort depended objects by dependency
To order a list every sorting algorithm will only check if any consecutive elements are sorted. In your case sorted means : the...
Read more >
Find the ordering of tasks from given dependencies
The findOrder function does a DFS traversal of the graph, which takes O(V+E) time, where V is the number of tasks and E...
Read more >
Module build order - Fedora Documentation
Module build order. Packages which are built within a module stream can have dependency relationships between them. This means that packages within a...
Read more >
Module dependencies | IntelliJ IDEA Documentation
Modules can depend on SDKs, JAR files (libraries) or other modules within a project. When you compile or run your code, the list...
Read more >
Managing dependencies
To add all dependencies for a package in your module, run a command like the one below ("." refers to the package in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found