Installing Local Dependencies From Monorepo #2517
Unanswered
harrymconner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I'm having issues deploying a project from within a monorepo structure, and I am trying to determine if this is not possible with PDM or if I am missing something.
The repo is set up as follows:
Problem
I'm trying to deploy the "dashboard" project, and on my local machine, all libraries are able to be installed as expected. I start running into issues once I try to install the project anywhere else though because of the absolute paths in the lockfile.
The dependencies for "dashboard" are specified in its pyproject.toml file as below.
"dashboard" depends on "calculations", and "calculations", in turn, depends on "date-manager". The "date-manager" transitive dependency is the one that is giving me issues.
Below is what is in "dashboard's" lock file for the "calculations" library. I'm able to install this library perfectly fine.
I have not been able to install the date-manager library because of the absolute path in the lock file below.
Everything works as expected if I convert the absolute path to a relative path ("../../libraries/date-manager") though.
My Question
Is there a way to get pdm to use the relative path in the lock file instead of the absolute path for transitive dependencies?
Beta Was this translation helpful? Give feedback.
All reactions