Coder Social home page Coder Social logo

Comments (10)

ericmj avatar ericmj commented on May 12, 2024

Do you have the rebar version that Mix installs, otherwise which version do you have? When rebar compiles the project it should generate a poolboy.app file with the correct version from the poolboy.app.src file.

from poolboy.

seadynamic8 avatar seadynamic8 commented on May 12, 2024

Yes, I believe that's the version I have (the one mix uses). I'm on Windows, maybe rebar doesn't work with Windows to correctly build the app with the version file?

from poolboy.

josevalim avatar josevalim commented on May 12, 2024

This is a poolboy bug. Rebar (Erlang build tool) allows users to inject custom code in their application files and poolboy is using this feature to read the VERSION from the filesystem using specific OS commands. It works on Linux but it is going to fail on Windows.

from poolboy.

josevalim avatar josevalim commented on May 12, 2024

The solution here is basically to stop using echo cat VERSION. @devinus, what do you propose? It is super important to get poolboy to nicely work on Windows.

from poolboy.

devinus avatar devinus commented on May 12, 2024

I guess we're just going to have to hardcode the version for now?

from poolboy.

josevalim avatar josevalim commented on May 12, 2024

Yes. Which places use the version? Are they many?

José Valimwww.plataformatec.com.br
http://www.plataformatec.com.br/Founder and Lead Developer

from poolboy.

devinus avatar devinus commented on May 12, 2024

Just the .app.src. Unfortunately, my laptop got stolen on Friday and the earliest I can release the next version is on Monday.

from poolboy.

josevalim avatar josevalim commented on May 12, 2024

Ouch, sorry to hear. No problem at all, thanks for looking into this!

from poolboy.

seadynamic8 avatar seadynamic8 commented on May 12, 2024

ooh, that's unfortunate. Thanks for looking at the problem.

from poolboy.

alavrik avatar alavrik commented on May 12, 2024

why not just use {version, git}? rebar will automatically substitute it with the output of git describe --always --tags

from poolboy.

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.