I want to create unregistered package A
.
A
depends on unregistered package B
which is in the same Git repository as A
(monorepo), so this should not be a problem using develop
in the package manager.
B
depends on the unregistered package C
which is in its own git repository. Adding C
as a dependency to B
was no problem.
However, I get an error when adding B
as a dependency for A
:
ERROR: Unsatisfiable requirements detected for package C
I couldn’t get this to work in a good way. What I tried or what could work with some other disadvantages:
- I can add a direct dependency of
A
onC
to make it work. However, this direct dependency is logically wrong - I tried adding a
[source]
section toB
’sProject.toml
to link toC
’s repository with no success. Conceptually, I think adding it toB
should work as then all the information should be available forA
, but the documentation explicitly states that this information will not be used inA
. - I tried adding a
[source]
section toA
’sProject.toml
to link toC
’s repository with no success. All I get is a
ERROR: Sources for `C` not listed in `deps` or `extras` section at "A/Project.toml"
- Include all our packages, that currently have their own repo, in one large monorepo.This is doable, but as we have some slightly adapted modifications of registered packages (no added features, only some removed features due to licensing issues, so nothing which would make sense to upstream). As we want to stay close to upstream, this would be more difficult without a separate repo.
- Create our own registry. This is probably doable. But without additional independent users, it seems kind of pointless to track dependencies twice (once in our packages and a second time in our registry).
Any ideas, suggestions, hints?
(adding @kristoffer.carlsson, as I hoped that the feature he presented on JuliaCon 2024 would solve exactly this issue.