Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Gleam version outdated #1145

Open
1 task done
DNEAVES opened this issue Jul 20, 2024 · 0 comments
Open
1 task done

Default Gleam version outdated #1145

DNEAVES opened this issue Jul 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DNEAVES
Copy link

DNEAVES commented Jul 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Problem

It seems that the 'gleam' provider is trying to download an outdated/unavailable version of Gleam (0.39.0)

Temporary Remedy

In the nixpacks.toml [phases.install] (or equivalent json):

  1. get Gleam from nixpkgs
  2. use a newer nixpkgsArchive (example below was found here and built successfully on my system.
  3. override the cmds, ensuring to not allow it to use the default Gleam install command.

Example:

[phases.install]
nixPkgs = ['gleam']
nixpkgsArchive = "1d9c2c9b3e71b9ee663d11c5d298727dace8d374"
cmds = []

To reproduce

Make a brand-new Gleam project (with probably any version of Gleam available at the moment)

build Gleam at least once (so there's a manifest.toml)

$ nixpacks build with project directory

It shows the error step in the planner, which fails when it runs: || install | cmds: sh /assets/get-gleam.sh 0.39.0 ||

Expected behavior

Expected

The auto-builder uses a functional Gleam version, if not the newest-stable one

Environment

OS: Pop_OS 22.04, x86_64
nixpacks version: 1.24.6

@DNEAVES DNEAVES added the bug Something isn't working label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant