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
Percy8mo ago
Project ID: N/A
cybershizo
cybershizo8mo ago
N/A
cybershizo
cybershizo8mo 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øn8mo ago
did you find a solution?
cybershizo
cybershizo8mo ago
Not really. Thought I guess it's unsupported :/
Krøn
Krøn8mo 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øn8mo ago
Go | Nixpacks
App source + Nix packages + Docker = Image
cybershizo
cybershizo8mo ago
Thanks it looks like it's explicitly not present
No description
cybershizo
cybershizo8mo ago
But I didn't know about that link so that helps too
Krøn
Krøn8mo ago
can you try setting the version from go.mod
cybershizo
cybershizo8mo ago
I did That's when it freaks out
Krøn
Krøn8mo ago
oh yikes
cybershizo
cybershizo8mo 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øn8mo ago
try using a docker build
cybershizo
cybershizo8mo ago
Eh 🙂
Krøn
Krøn8mo ago
or sounds stupid? i dont use Go so i apologize if i made any errors
cybershizo
cybershizo8mo ago
No you're good I am too dumb to use Docker And too impatient
Krøn
Krøn8mo ago
alright
Brody
Brody8mo 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
cybershizo
cybershizo8mo 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
Brody8mo ago
nothing specific to railway at all, just have a Dockerfile in your repo and it will be automatically used
cybershizo
cybershizo8mo ago
Oh interesting didn't know that Much appreciated
Want results from more Discord servers?
Add your server