Building linters with different versions of Go is problematic #928

Closed
opened 2024-01-24 16:59:38 +00:00 by fyrchik · 1 comment
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 ```
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
Author
Owner

Closed via #1341

Closed via #1341
fyrchik added the
internal
label 2024-09-13 15:07:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
No description provided.