Open mosteo opened 3 years ago
@mosteo I've a small problem with the pin circularity detection (using af2bead of alire): in the orka crate I get this error:
error: Pin circularity detected when adding pin orka_transforms --> orka_simd:
error: Last manifest in the cycle is /path/to/orka/orka_transforms/alire.toml
orka_transforms depends on orka_simd (and therefore orka_transforms/alire.toml has a pin on orka_simd), and orka itself directly depends on both orka_transforms and orka_simd. In orka/alire.toml file I have a pin to orka_simd and orka_transform. So there are no actual cycles if the edges are directional (DAG):
orka -> orka_transforms -> orka_simd
\___________________________^
I can fix the error above by removing the pin on orka_simd from orka/alire.toml, but then the compilation of orka succeeds only as long as orka_transforms still depends on orka_simd.
@onox, thanks for the report, that is certainly not intended.
I'm creating this issue to track this idea which keeps popping up so interested parties can track it / chime in with comments.
For the sake of clarity: a monorepo is a repo that contains several crates, usually related to each other. I'll call a subcrate each crate within a monorepo.
The issue is that, for convenience or other reasons, some people keep several possibly interrelated crates in a single repository. Publishing each one is currently a tedious affair as this requires zipping each crate independently.
Possibilities that have been discussed/attempted in the past:
This is orthogonal to pins (#721), that can be used freely in local development to use all/part of the crates in the monorepo simultaneously. Pins are not used for publishing.
My personal standing right now is that
Other issues that touched on related aspects: #350