Is Go 1.22 supported yet?
I remember getting deployment issues when trying to support Go 1.22 in the past. I assume it's a matter of Nixpacks supporting Go 1.22. Anyone know if this works yet?
22 Replies
Project ID:
N/A
N/A
Oh I guess I can just look here to see? https://github.com/railwayapp/nixpacks/blob/main/src/providers/go.rs#L32
GitHub
nixpacks/src/providers/go.rs at main · railwayapp/nixpacks
App source + Nix packages + Docker = Image. Contribute to railwayapp/nixpacks development by creating an account on GitHub.
did you find a solution?
Not really. Thought I guess it's unsupported :/
for python i had to set an env variable to set my nixpacks python version from the default 3.9 to 3.11 using env variable NIXPACKS_PYTHON_VERSION
maybe there is something similar for go
https://nixpacks.com/docs/providers/go
check the above
Go | Nixpacks
App source + Nix packages + Docker = Image
Thanks it looks like it's explicitly not present
But I didn't know about that link so that helps too
can you try setting the version from go.mod
I did
That's when it freaks out
oh yikes
It was a while go but I had to revert to 1.21.x
Doesn't look like anything has changed
In both Nixpacks source or the docs
try using a docker build
Eh
🙂
or sounds stupid? i dont use Go so i apologize if i made any errors
No you're good
I am too dumb to use Docker
And too impatient
alright
the impatience should drive you to use a Dockerfile like kron suggested, that way you can use any go version minutes after the image releases without the need to depend on railway to add support for a version that you'd want to use
@Brody I've never done that with Railway, do you mind linking any relevant docs you would have me look at to start?
nothing specific to railway at all, just have a Dockerfile in your repo and it will be automatically used
Oh interesting didn't know that
Much appreciated