I like to structure my code with applications and I often have more than
one application in a specific git repo (in a mono-repo type fashion) where
an application will have a path dependency to another application in the
git repository. However, this is poorly supported by mix at the moment.
There is the `:sparse` option, but that sets the path to a path in the git
repository AND does a sparse checkout so only that path is downloaded. I'd
like an option to have the former without the latter. As far as I can tell
this is currently not possible.
I think the option can be named something like "git_path", which would make
the configuration look like this:
def deps do
[
...,
{:timer, git: "https://github.com/axelson/pomodoro.git", git_path:
"timer"}
]
end
Note: Today if you use `sparse: "timer"` and after the repository is
downloaded you manually switch it to a full instead of sparse checkout, the
dependency will work correctly.
Related elixir forum post:
https://elixirforum.com/t/is-it-possible-to-have-a-github-dep-point-to-a-path-within-the-repo/24048
-Jason
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/2bbd23a7-4001-46c8-b8bb-5c3047412360%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.