Building linters with different versions of Go is problematic #15

Closed
opened 2024-01-24 16:58:23 +00:00 by fyrchik · 2 comments
Owner

I can build it with 1.20, but cannot with 1.21

$ go version
go version go1.20.6 linux/amd64
$ make lint-install lint
Cloning into '.cache/linters'...
...
$ g set 1.21.6
$ go version
go version go1.21.6 linux/amd64
$ make lint-install lint
Cloning into '.cache/linters'...
...
ERRO Unable to load custom analyzer truecloudlab-linters:bin/linters/external_linters.so, plugin.Open("/repo/frostfs/node/bin/linters/external_linters"): plugin was built with a different version of package internal/goversion
ERRO Running error: unknown linters: 'truecloudlab-linters', run 'golangci-lint help linters' to see the list of supported linters
make: *** [Makefile:186: lint] Error 3
I can build it with 1.20, but cannot with 1.21 ``` $ go version go version go1.20.6 linux/amd64 $ make lint-install lint Cloning into '.cache/linters'... ... $ g set 1.21.6 $ go version go version go1.21.6 linux/amd64 $ make lint-install lint Cloning into '.cache/linters'... ... ERRO Unable to load custom analyzer truecloudlab-linters:bin/linters/external_linters.so, plugin.Open("/repo/frostfs/node/bin/linters/external_linters"): plugin was built with a different version of package internal/goversion ERRO Running error: unknown linters: 'truecloudlab-linters', run 'golangci-lint help linters' to see the list of supported linters make: *** [Makefile:186: lint] Error 3 ```
Author
Owner

Maybe the fix would reside in the frostfs-node repo, though.

Maybe the fix would reside in the frostfs-node repo, though.
Author
Owner

Let's actually create this in node, the Makefile is there TrueCloudLab/frostfs-node#928

Let's actually create this in node, the Makefile is there https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/928
Sign in to join this conversation.
No description provided.