I believe the following should work iiuc:
- Move your
~/julia/Mod1.jland~/julia/Mod2.jlfiles to~/julia/Mod1/srcand~/julia/Mod2/srcfolders respectively. - Turn your
Mod1folder into a package with Project.toml and Manifest.toml files using the instructions in Convert REQUIRE to Project.toml and Manifest.toml - #2 by mohamed82008 - Follow similar steps for
Mod2but before step 10, you can do]add ~/julia/Mod1which will addMod1as a local dependency ofMod2. - After you restart Julia in the default environment, make both packages visible in this environment by running
]dev ~/julia/Mod1and]dev ~/julia/Mod2, or you can choose to make the latter only visible if you want.
Hopefully, some expert can correct me if I said anything wrong.