devenv icon indicating copy to clipboard operation
devenv copied to clipboard

monorepo importing

Open domenkozar opened this issue 1 year ago • 6 comments

With #745 it will be possible to import devenv.nix across directories in a git repo.

But it's a bit cumbersome to use:

inputs:
  root:
    url: git+file://.
    flake: false
imports:
- root/examples/compose/projectA

I wonder if we should come up with something like root:// to support imports from top-level of the git repo.

domenkozar avatar Mar 06 '24 07:03 domenkozar

Maybe we could support ../projectA syntax by infering the git root and pwd, then doing the path calculations.

A bit easier to support is - /examples/compose/projectA

domenkozar avatar Mar 06 '24 07:03 domenkozar

I was literally opening an issue to request the ability to do:

imports:
- /
- /moduleA

Where / imports the git root devenv.nix and /moduleA is ./moduleA from the git root.

rawkode avatar Aug 12 '24 21:08 rawkode

Relative imports would also be appreciated for shared services deep within the monorepo.

How difficult would this be to support, @domenkozar ?

rawkode avatar Aug 12 '24 21:08 rawkode