R
Railway3mo ago
zgmg92

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
Percy
Percy3mo ago
Project ID: N/A
zgmg92
zgmg923mo ago
N/A
zgmg92
zgmg923mo ago
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.
Krøn
Krøn3mo ago
did you find a solution?
zgmg92
zgmg923mo ago
Not really. Thought I guess it's unsupported :/
Krøn
Krøn3mo ago
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
Krøn
Krøn3mo ago
Go | Nixpacks
App source + Nix packages + Docker = Image
zgmg92
zgmg923mo ago
Thanks it looks like it's explicitly not present
No description
zgmg92
zgmg923mo ago
But I didn't know about that link so that helps too
Krøn
Krøn3mo ago
can you try setting the version from go.mod
zgmg92
zgmg923mo ago
I did That's when it freaks out
Krøn
Krøn3mo ago
oh yikes
zgmg92
zgmg923mo ago
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
Krøn
Krøn3mo ago
try using a docker build
zgmg92
zgmg923mo ago
Eh 🙂
Krøn
Krøn3mo ago
or sounds stupid? i dont use Go so i apologize if i made any errors
zgmg92
zgmg923mo ago
No you're good I am too dumb to use Docker And too impatient
Krøn
Krøn3mo ago
alright
Brody
Brody3mo ago
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
zgmg92
zgmg923mo ago
@Brody I've never done that with Railway, do you mind linking any relevant docs you would have me look at to start?
Brody
Brody3mo ago
nothing specific to railway at all, just have a Dockerfile in your repo and it will be automatically used
zgmg92
zgmg923mo ago
Oh interesting didn't know that Much appreciated