-
I'm coming from the Dagger -> Docker -> Elixir -> Hex -> Rebar3 direction, so forgive me if I'm looking in the right place. https://www.rebar3.org/docs/basic_usage/ It seem there is a behavior of symlinking the In my case: Unfortunately, this is playing badly with dagger/dagger/issues/8545 / the golang archiver package. I mean it's an edge case with probably one user of the Windows 11, Docker, Dagger, Rebar3 stack on the planet. Anyhow, assuming it'll take a year for Dagger to fix, other than removing the rexbug dependency from my project is there any other way to prevent the symbolic linking behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is a general optimization to allow dependencies and plugins with identical content to not be rebuilt for every subcommand. Undoing this would be likely to make things incredibly slower for most users as any first test run would likely need to rebuild all deps and plugins, and be re-done every time the profiles change. We do OS-specific checks for this (see rebar3/apps/rebar/src/rebar_file_utils.erl Lines 111 to 154 in 29ccddb file:make_symlink/2 to detect whether this is workable.
I think it's possible to disable symbolic links in windows by removing permissions from a user, but I don't know of anyway of removing that ability from a non-windows setup. Other ways I could imagine:
To think about option 2), I'd need to know how the whole thing is set up to see if anything makes sense. Falling back to 1) could happen, but it's a really weird workaround for us to carry around and expose. |
Beta Was this translation helpful? Give feedback.
-
Thanks I think this is going to bite anyone who starts using Dagger project to build Elixir projects if:
For the majority of users it won't even be an issue on windows as they can add deps folder to Thanks, and have a nice day. B |
Beta Was this translation helpful? Give feedback.
This is a general optimization to allow dependencies and plugins with identical content to not be rebuilt for every subcommand.
Undoing this would be likely to make things incredibly slower for most users as any first test run would likely need to rebuild all deps and plugins, and be re-done every time the profiles change.
We do OS-specific checks for this (see
rebar3/apps/rebar/src/rebar_file_utils.erl
Lines 111 to 154 in 29ccddb