Skip to content

Any way to disable the symlinking of _build\prod\plugins to _build/default/plugins? #2917

Closed Answered by ferd
fcbry asked this question in Q&A
Discussion options

You must be logged in to vote

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

symlink_or_copy(Source, Target) ->
Link = case os:type() of
{win32, _} ->
Source;
_ ->
rebar_dir:make_relative_path(Source, Target)
end,
case file:make_symlink(Link, Target) of
ok ->
ok;
{error, eexist}…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by fcbry
Comment options

You must be logged in to vote
2 replies
@ferd
Comment options

ferd Sep 24, 2024
Maintainer

@fcbry
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants