Fix: Package resolution from Docker containers
Motivation and Context
When using LIGO via docker docker run --rm -v "$PWD":/project -w /project ligolang/ligo:0.54.0 compile contract contracts/main.mligo
If the $PWD
is attached to a different directory inside the container LIGO is not able to find packages.
Description
The package path resolution (ModRes) was dependent on the path to the project-root in the host system.
This MR removes the dependency of such a path, allowing LIGO to find packages inside Docker containers.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected) -
Performance improvement (non-breaking change that improves performance) -
None (change with no changelog)
Changelog
Fixes package resolution for LIGO when used via Docker container.
Checklist:
-
Changes follow the existing coding style (use dune @fmt
to check). -
Tests for the changes have been added (for bug fixes / feature). -
Documentation has been updated. -
Changelog description has been added (if appropriate). -
Examples in changed behaviour have been added to the changelog (for breaking change / feature).
Edited by Melwyn Saldanha