Skip to content

How to disable local subcommand for packaging purpose #2871

Answered by tsloughter
mbekkomo asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a way to disable it. If you are patching I guess you could just remove these two lines https://github.com/erlang/rebar3/blob/main/apps/rebar/src/rebar.app.src.script#L67-L68

But note that local install does not download a new rebar3, it unpacks the currently running rebar3 to install. Only upgrade will grab a new binary. So maybe only need to remove upgrade.

Also curious what patches you need and if they couldn't be upstreamed so you don't need to block local upgrade.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mbekkomo
Comment options

Answer selected by mbekkomo
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