GithubHelp home page GithubHelp logo

rebar3 woes about evm HOT 6 OPEN

ericb-summit avatar ericb-summit commented on July 29, 2024
rebar3 woes

from evm.

Comments (6)

robisonsantos avatar robisonsantos commented on July 29, 2024

from evm.

ericb-summit avatar ericb-summit commented on July 29, 2024

Sorry let me be sure I explained properly:

Let's say I evm use 23.3.4.18, and install rebar3 from sources, which is just ./bootstrap && ./rebar3 local install which pops it into ~/.cache/rebar3/bin/rebar3. Of course rebar3 works fine at this point.

Now if I, say evm use 25.3.2, rebar3 won't work, due to some incompatibility between the compiled rebar3 and erl/otp 25.3.2. So, I have to rebuild it, git clean -dffx && ./bootstrap && ./rebar3 local install and this newly compiled rebar3 will work on 25.3.2.

But then going back to evm use 23.3.4.18 I would have to recompile rebar3 again.

So my question was, in a way: is there some place I could put the version-specific rebar3 so a specific rebar3 would follow evm use xxx ? Would it be okay if we simply placed rebar3 for example in ~/.evm/erlang_versions/otp_src_25.3.2/bin/erl for 25.3.2 and similarly for other versions?

from evm.

robisonsantos avatar robisonsantos commented on July 29, 2024

from evm.

ericb-summit avatar ericb-summit commented on July 29, 2024

This is what installed rebar3 looks like

#!/usr/bin/env sh
## Rebar3 3.22.0+build.5277.ref44d0587a
REBAR3_VSN=${REBAR3_VSN:-3.22.0+build.5277.ref44d0587a}
erl -pz /home/enry/.cache/rebar3/vsns/${REBAR3_VSN}/lib/*/ebin +sbtu +A1 -noshell -boot start_clean -s rebar3 main $REBAR3_ERL_ARGS -extra "$@"

Within that .cache/rebar3/.. folder are beam files kind of like an installed erlang release. That complicates things a bit. I think I might reach out to ferd to get his input on this.

from evm.

robisonsantos avatar robisonsantos commented on July 29, 2024

from evm.

ericb-summit avatar ericb-summit commented on July 29, 2024

Ok so turns out rebar3 is by design friendly to current +2 versions of erlang.

So:

  • Compile for 23, use on 24, 25 (I got my example above mixed up)
  • Compile for 25, won't work on 23, or 24 (this is what I meant to write above), only works on 25,26,27

I can live with with current + 2 version it's a fair limitation. We can close this.

from evm.

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.