Poly project sync for 3rd party dependencies? #286
-
Found out about polylith today, it's the perfect tool for my use case! I'm enjoying it a lot so far. However, one snag I've run into is syncing my 'project' with the third party libraries used by its bricks. The |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @saifmode, I'm happy that you have found Polylith and that it is a useful tool! Yes, the third-party libraries are added manually. One reason is that libraries aren't that often changed in comparison to your source code, that is constantly developed and refactored. I also think libraries are something you as a developer want more control over, and probably prefer to use the dependency management tool in the project (like Poetry, Hatch or uv) - that also handles the lock-files. The Polylith tool has the |
Beta Was this translation helpful? Give feedback.
-
Cool, that makes sense. I wonder if a nice automation would be to optionally add these third party libs to a project? So doing:
Would do sync the bricks etc, but also run poly check for missing 3rd party libs, and pull them from the root project toml if they exist. Might be a bad idea, but interested to hear your thoughts. |
Beta Was this translation helpful? Give feedback.
Hi @saifmode, I'm happy that you have found Polylith and that it is a useful tool!
Yes, the third-party libraries are added manually. One reason is that libraries aren't that often changed in comparison to your source code, that is constantly developed and refactored. I also think libraries are something you as a developer want more control over, and probably prefer to use the dependency management tool in the project (like Poetry, Hatch or uv) - that also handles the lock-files.
The Polylith tool has the
poly check
command and thepoly libs
command to notify about any missing libraries. Thepoly check
command is also useful in a CI, where it will return with an error exit code if there i…