Skip to content

Commit

Permalink
Diagrams for dependency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocollado committed Jan 16, 2024
1 parent cff63e9 commit 54b32ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions builders/build/customize/adding-external-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ Similarly to what is described in the [built-in module](/builders/build/customiz
2. Make the standard features available to the compiler
3. Configure and add the module to the runtime

Should the third-party module reference any dependency already referenced from a distinct source or version, compilation will fail. To resolve this issue, it will be necessary to apply a patch.
Should the third-party module reference any dependency already referenced from a distinct source or version, compilation will fail.

The following diagram shows how two different references to the same dependency are being included in the runtime, causing the compilation to fail:

![Double reference](/images/builders/build/external-module/external-module-1.png)

To resolve this issue, it will be necessary to apply a patch so that the references for the dependency are unified:

![Patched reference](/images/builders/build/external-module/external-module-2.png)

### Declaring the Dependency {: #declaring-dependency }

Expand Down Expand Up @@ -140,7 +148,7 @@ Finally, executing the `diener` [command](#solving-dependencies-conflicts-diener
This is what the execution in the terminal looks like:
![Executing diener](/images/builders/build/external-module/external-module-1.png)
![Executing diener](/images/builders/build/external-module/external-module-3.png)
As shown in the terminal output, `diener` adds a patch for the dependencies, creating a `patch` section in your `toml` overriding their origin:
Expand Down
Binary file modified images/builders/build/external-module/external-module-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 54b32ae

Please sign in to comment.