Git Product home page Git Product logo

Comments (8)

zmstone avatar zmstone commented on August 28, 2024 1

This does not seem to be an issue of rebar_mix.
Rather something to improve in rebar3 (maybe?)
so I created erlang/rebar3#2518

from rebar_mix.

auror avatar auror commented on August 28, 2024

Hello @Supersonido / @tsloughter , now i've been getting another crash while releasing...

Error: function_clause
[{filename,join1,
           [<<"1.2.2">>,[],
            "-nosaj/bil/ppaym/ler/ppaym/dliub_/ppaym/smargorP/YYYYYY/sresU/",
            unix],
           [{file,"filename.erl"},{line,472}]},
 {filename,join,1,[{file,"filename.erl"},{line,433}]},
 {rlx_assemble,copy_app,4,
               [{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
                {line,94}]},
 {rlx_assemble,'-copy_app_directories_to_output/3-lc$^0/1-1-',4,
               [{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
                {line,79}]},
 {rlx_assemble,copy_app_directories_to_output,3,
               [{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
                {line,79}]},
 {rlx_assemble,do,2,
               [{file,"/src/_build/default/lib/relx/src/rlx_assemble.erl"},
                {line,18}]},
 {relx,build_release_,3,
       [{file,"/src/_build/default/lib/relx/src/relx.erl"},{line,171}]},
 {relx,build_release,3,
       [{file,"/src/_build/default/lib/relx/src/relx.erl"},{line,77}]},
 {rebar_relx,do,2,[{file,"rebar_relx.erl"},{line,67}]},
 {rebar_core,do,2,[{file,"rebar_core.erl"},{line,155}]},
 {rebar_prv_do,do_task,5,[{file,"rebar_prv_do.erl"},{line,75}]},
 {rebar_core,do,2,[{file,"rebar_core.erl"},{line,155}]},
 {rebar3,run_aux,2,[{file,"rebar3.erl"},{line,181}]},
 {rebar3,main,1,[{file,"rebar3.erl"},{line,66}]},
 {escript,run,2,[{file,"escript.erl"},{line,758}]},
 {escript,start,1,[{file,"escript.erl"},{line,277}]},
 {init,start_em,1,[]},
 {init,do_boot,3,[]}]

Notice the name, which has been reversed ?

"-nosaj/bil/ppaym/ler/ppaym/dliub_/ppaym/smargorP/YYYYYY/sresU/"

What could be happening here ?

Regards

from rebar_mix.

ferd avatar ferd commented on August 28, 2024

it's trying to add a version to the end of the filepath and failing because it's a binary instead of a list. I can't recall if that was patched in rebar3 (try a newer version) or judged to be a problem with the dep, or just not addressed yet

from rebar_mix.

auror avatar auror commented on August 28, 2024

We're checking this on rebar3 3.14.3.

from rebar_mix.

tsloughter avatar tsloughter commented on August 28, 2024

Can you check if the jason.app file has a binary for vsn.

from rebar_mix.

auror avatar auror commented on August 28, 2024

@tsloughter Hmmm it's a string.

➜ cat _build/myapp/lib/jason/ebin/jason.app
{application,jason,
             [{applications,[kernel,stdlib,elixir]},
              {description,"A blazing fast JSON parser and generator in pure Elixir.\n"},
              {modules,['Elixir.Jason','Elixir.Jason.Codegen',
                        'Elixir.Jason.DecodeError','Elixir.Jason.Decoder',
                        'Elixir.Jason.Decoder.Unescape','Elixir.Jason.Encode',
                        'Elixir.Jason.EncodeError','Elixir.Jason.Encoder',
                        'Elixir.Jason.Encoder.Any',
                        'Elixir.Jason.Encoder.Atom',
                        'Elixir.Jason.Encoder.BitString',
                        'Elixir.Jason.Encoder.Date',
                        'Elixir.Jason.Encoder.DateTime',
                        'Elixir.Jason.Encoder.Decimal',
                        'Elixir.Jason.Encoder.Float',
                        'Elixir.Jason.Encoder.Integer',
                        'Elixir.Jason.Encoder.Jason.Fragment',
                        'Elixir.Jason.Encoder.List',
                        'Elixir.Jason.Encoder.Map',
                        'Elixir.Jason.Encoder.NaiveDateTime',
                        'Elixir.Jason.Encoder.Time','Elixir.Jason.Formatter',
                        'Elixir.Jason.Fragment','Elixir.Jason.Helpers']},
              {registered,[]},
              {vsn,"1.2.2"}]}.

The vsns for apps are usually UTF-8 strings i believe !

from rebar_mix.

zmstone avatar zmstone commented on August 28, 2024

the vsn suffix is appended correctly if we revert this commit:
erlang/rebar3@80671df

from rebar_mix.

zmstone avatar zmstone commented on August 28, 2024

and the workaround is to run rebar3 as profile do compile,release instead of rebar3 as profile release

from rebar_mix.

Related Issues (18)

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.