Giter VIP home page Giter VIP logo

Comments (4)

fhunleth avatar fhunleth commented on June 24, 2024

I did some investigation, and this is an issue with make. The page at https://www.cmcrossroads.com/article/gnu-make-meets-file-names-spaces-them has some workarounds, but none of them are great (IMHO). Plus the next Makefile in your project will probably fail when this one is fixed.

I'm not sure how any Elixir project Makefile works with spaces in the path unless it either builds in the source directory (so no absolute paths needed) or uses realpath to convert MIX_APP_PATH to a relative path that doesn't have spaces. Building in the source directory is a non-starter with Nerves. Using realpath and passing around relative paths might not work on all systems since not everyone has realpath. Using relative paths seems tedious.

I'm closing this since I don't see it being fixed. If you have a suggestion, please send a PR.

from muontrap.

LostKobrakai avatar LostKobrakai commented on June 24, 2024

I'm fine with the resolution. I'm just wondering if mountrap might be able to check for that and raise a more descriptive error message / log a warning? I'm not sure people will do the link of having a truncated path printed with their space in path as quickly as I seem to have.

from muontrap.

LostKobrakai avatar LostKobrakai commented on June 24, 2024

To add a bit more context, why I'm worried about that: I've published minio_server a few days ago, which uses muontrap being not really nerves related, and it might be tricky if one isn't explicitly aware of muontrap in the first place.

from muontrap.

fhunleth avatar fhunleth commented on June 24, 2024

Could you make a PR or send a PR to elixir_make? IMHO, adding the check to elixir_make would be better since checking if the MIX_APP_PATH (or any of the paths that Elixir passes to make) have a space in them seems easy there, and this affects all projects using make.

from muontrap.

Related Issues (13)

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.