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