Building linters with different versions of Go is problematic #928

Open
opened 2024-01-24 16:59:38 +00:00 by fyrchik · 0 comments

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 ```
fyrchik added the
bug
Infrastructure
labels 2024-01-24 16:59:38 +00:00
fyrchik added this to the vNext milestone 2024-01-24 17:00:19 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#928
There is no content yet.