Code Monkey home page Code Monkey logo

Comments (6)

tsloughter avatar tsloughter commented on July 29, 2024

I'd say there isn't one currently. Globally would be the way to go eventually but not the best way to go if you mean public repos. Private projects it makes sense to just have relx installed globally.

from relx.

blt avatar blt commented on July 29, 2024

Personally, I like to keep rebar/relx out of repositories and have them be a system dependency. With rebar especially I've found that bundled versions tend to have incompatible bytecode on TravisCI and depending on how your Makefile is written you're at the mercy of individual developer's PATH order.

There are trade-offs both ways, of course, and what works is largely a matter of context.

from relx.

tsloughter avatar tsloughter commented on July 29, 2024

A nice way I've seen with rebar is to do this in your Makefile:

REBAR=$(shell which rebar)

ifeq ($(REBAR),)
REBAR=$(CURDIR)/rebar
endif

$(REBAR):
    wget https://github.com/rebar/rebar/wiki/rebar
    chmod a+x rebar

I'll need to make a release off relx to put up with github's new releases feature and then we could do that for relx as well.

from relx.

nivertech avatar nivertech commented on July 29, 2024

I have shell scripts like this:

REBAR=`which rebar || echo ./rebar`
$REBAR skip_deps=true compile

probably a good idea to use something similar for relx.

RELX=`which relx || echo ./relx`
$RELX ...

BTW: I think rebar got initial traction by being copied into many open source repos. Only when it was almost de-facto standard they recommended to start installing it globally.

from relx.

tsloughter avatar tsloughter commented on July 29, 2024

Yup, that is why we went this way with relx and had converted sinan to an escript as well near its end of life. So going to same route with relx.

Shall I close this ticket?

from relx.

nivertech avatar nivertech commented on July 29, 2024

yes. thanks

from relx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.