Giter VIP home page Giter VIP logo

Comments (3)

jesseshieh avatar jesseshieh commented on June 12, 2024

@CrowdHailer I think it should be possible to get the hook working. My guess is that $PATH is substituted into the string at the wrong time. Specifically, it happens here
https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/lib/misc_funcs.sh#L34

When really, you probably want it to happen here

$hook_compile || exit 1

I haven't looked into how to get that to happen, but I suspect there are multiple ways of doing this.

Another possibility is to look at the way the phoenix static buildpack depends on this buildpack. It essentially requires that you use multiple buildpacks and that this buildpack is executed before the phoenix static one. This buildpack installs elixir and erlang and updated the PATH, for example, see

PATH=$(elixir_path)/bin:${PATH}

I wonder if something similar can be done with gleam.

from heroku-buildpack-elixir.

CrowdHailer avatar CrowdHailer commented on June 12, 2024

I'm not actually using this approach anymore, I ended up with a Docker solution. However I suspect there is still interest in this approach from Gleam folks in general. Might be interesting to see if anyone in the discord channel is interested

from heroku-buildpack-elixir.

CrowdHailer avatar CrowdHailer commented on June 12, 2024

If there is anyone interested, I'm looking at this approach again.
I've tried making a build pack that installs only the gleam binary.
Most of the work is here but I haven't yet figured how to update the PATH so it persistes to separate build steps.
https://github.com/midas-framework/gleam_buildpack/blob/main/bin/compile

from heroku-buildpack-elixir.

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.