Hi, I’m developing a module for my team.
I’m currently developing a Julia package that relies on a forked version of another public package (Fortran90Namelists.jl). I’ve made some important internal modifications to this dependency and want my package to use this modified fork rather than the version registered in the General registry.
Although I’ve taken the following steps:
- Assigned a new UUID to my forked version of Fortran90Namelists.jl
- Published it to a public Git repository
- Added the dependency using Pkg.add(“https://github.com/.../MyForkedFortran90Namelists.jl”)
But I still find that when users install my main package (e.g., via Pkg.add(“https://github.com/.../MyPackage.jl”)), Julia resolves the dependency using the original registered version, not my custom fork — unless the user explicitly runs Pkg.develop on the forked dependency.
My core question is:
How can I ensure that when other users install my package, Julia automatically pulls in my forked version of a dependency (e.g., Fortran90Namelists.jl), rather than resolving to the version in the registry?
I’d prefer a solution that does not require the user to manually develop the dependency, if possible.