!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

233 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

Load older messages


SenderMessageTime
28 Feb 2024
@kirillrdy:matrix.orgkirillrdypeople can just override tools to their version of golang09:48:21
@kirillrdy:matrix.orgkirillrdyit shouldn't affect default version of golang in nixpkgs09:48:40
@katexochen:matrix.orgPaul Meyer (katexochen)
In reply to @kirillrdy:matrix.org
i cant speak for gopls, but golangci-lint needs to be built to specific version of golang you are using, therefore, there is no one default
I don't think this is true. You should be able to use golangci-lint built with Go 1.21 for Go modules that only require Go 1.20 in the same way you can build them with a newer toolchain.
There is also nothing documented otherwise in the golangci-lint docs: https://golangci-lint.run/usage/install/
09:52:14
@katexochen:matrix.orgPaul Meyer (katexochen)
In reply to @kirillrdy:matrix.org
it shouldn't affect default version of golang in nixpkgs
I think it should. Go provides a backwards compatibility promise. People who work on Go expect this, rely on it and build upon it. There is no similar promise regarding forward compatibility. Keeping the Go toolchain and builder on the latest release support these guarantees provided by upstream.
09:56:07
@kirillrdy:matrix.orgkirillrdygolangci-lint is just a massive collection of thirdparty tools, and many of them rely on source code of golang version they built against09:57:03
@kirillrdy:matrix.orgkirillrdyi think still main question is how this affects default version of golang for nixpkgs, i think i understand where your proposal comes from, but I would be leaning towards just bumping default golang in nixpkgs09:58:29
@katexochen:matrix.orgPaul Meyer (katexochen)
In reply to @kirillrdy:matrix.org
golangci-lint is just a massive collection of thirdparty tools, and many of them rely on source code of golang version they built against
That's true, but incompatibilities should (and seemingly are) handled by golangci-lint itself, see for example https://github.com/golangci/golangci-lint/pull/4357
10:00:24
@katexochen:matrix.orgPaul Meyer (katexochen)
In reply to @kirillrdy:matrix.org
i think still main question is how this affects default version of golang for nixpkgs, i think i understand where your proposal comes from, but I would be leaning towards just bumping default golang in nixpkgs
Not sure I get what you mean, are you saying we should prefer bumping the default over introducing a buildGoLatestModule?
10:01:53

There are no newer messages yet.


Back to Room ListRoom Version: 9