Skip to content

Support RISV64 #2079

Closed
Closed
@qdm12

Description

@qdm12

your feature request related to a problem? Please describe.

GOARCH=riscv64 go build ./cmd/golangci-lint

fails with:

/go/pkg/mod/github.com/prometheus/[email protected]/cpuinfo.go:71:9: undefined: parseCPUInfo

Describe the solution you'd like.

I expect golangci-lint to be buildable for riscv64 as it is for all other platforms.

There is the dependency github.com/prometheus/procfs which added support for riscv64 in v0.6.0 (prometheus/procfs@910e685)

golangci-lint probably depends on many dependencies using versions pre-v0.6.0 of procfs so it's more of a long shot than something that can be fixed in a single PR I believe.

Describe alternatives you've considered.

go mod edit -replace=github.com/prometheus/procfs=github.com/prometheus/[email protected]
go mod tidy

Fixes the build, but probably in a risky-ish way I guess. Not a priority issue at all, but I thought it would be useful to track it.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions