Coder Social home page Coder Social logo

Comments (9)

straight-shoota avatar straight-shoota commented on May 26, 2024

This URL assumes package version 0.23.0-1 but for this release it is acually 0.23.1-3.
CRYSTAL_URL="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-linux-x86_64.tar.gz"

from heroku-buildpack-crystal.

ktaragorn avatar ktaragorn commented on May 26, 2024

Just ran into this.. am working around it by using 0.23.0 for now, by creating a file .crystal-version with that version in it.

from heroku-buildpack-crystal.

mverzilli avatar mverzilli commented on May 26, 2024

We can either extract the correct tar.gz name from the response of curl https://api.github.com/repos/crystal-lang/crystal/releases/latest or change our naming policy so that the tar.gz name is a function of the version (that means either dropping the -1, -2, -3 suffixes so we end up with CRYSTAL_URL="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-linux-x86_64.tar.gz or adding them as a 4th component of the version so we end up with CRYSTAL_VERSION=0.23.1.3 in this case).

I'd vote to drop the -X suffixes in tar.gz names. @matiasgarciaisaia thoughts about going that way?

from heroku-buildpack-crystal.

matiasgarciaisaia avatar matiasgarciaisaia commented on May 26, 2024

Hi there!

It's effectively because of the released tar.gz name. The published 0.23.1 was the third build - there was a first build published in one of the issues, a second build shared internally that was plain wrong, and this last one that worked.

I'm still not sure about The Way™ to handle this. If it's not that much work to simply extract the name from the URL, I'd love to do that for now.

We have started discussing distribution channels (some beta channel vs a stable one) that will imply betas, release candidates, etc, so I think we should first define that, and then choose between a build version (like the -1, -X we have now) and some other suffix.

But I think a suffix will be there for a while, at least.

Any other thoughts?

from heroku-buildpack-crystal.

bcardiff avatar bcardiff commented on May 26, 2024

To unblock this we can create a fallback from -1 to -5 in case a 404 is reached

from heroku-buildpack-crystal.

mverzilli avatar mverzilli commented on May 26, 2024

The info is there, I just was wondering if it's worth having many builds per version, given the only reason that happens is because of packaging errors.

Anyway, there's an "assets" collection in the json response that holds the exact name of each file we distribute. We can iterate that and look for linux-x86_64.tar.gz suffix, and we'd be pretty sure that's the right file. I had started to work on this but ran out of time and won't be in front of a computer for two weeks. Just sharing the "research" in case someone wants to give it a try before!

from heroku-buildpack-crystal.

pedantic-git avatar pedantic-git commented on May 26, 2024

Something I neglected to mention in the original bug report is that this error took my app down, because the buildpack didn't fail after the 404 - it tried to deploy the app without a compiler installed.

Whatever the solution to the above, it's probably worth making sure that future filename changes / 404s don't take apps down with them.

from heroku-buildpack-crystal.

matiasgarciaisaia avatar matiasgarciaisaia commented on May 26, 2024

Please review #24 so we fix this 👍

from heroku-buildpack-crystal.

pedantic-git avatar pedantic-git commented on May 26, 2024

Thanks!

from heroku-buildpack-crystal.

Related Issues (14)

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.