Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix lint on ARM #24311

Merged
merged 3 commits into from
Jan 31, 2022
Merged

build: fix lint on ARM #24311

merged 3 commits into from
Jan 31, 2022

Conversation

ligi
Copy link
Member

@ligi ligi commented Jan 29, 2022

append GOARM to arm lint download URL - otherwise it fails with:

 downloading from https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm.tar.gz
    ci.go:347: download error: status 404

also increase the timeout as it otherwise times out on a pi

@holiman
Copy link
Contributor

holiman commented Jan 31, 2022

@holiman
Copy link
Contributor

holiman commented Jan 31, 2022

Ah, it appears to be https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm64.tar.gz

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@holiman holiman changed the title Fix lint on ARM build: fix lint on ARM Jan 31, 2022
@ligi
Copy link
Member Author

ligi commented Jan 31, 2022

for arm64 it would directly work - see this table: https://zchee.github.io/golang-wiki/GoArm/

only for armv7 and armv6 we need to append GOARM

these are the links generated: https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-armv6.tar.gz

https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-armv7.tar.gz

for v5 it would just fail as golint has no builds for v5 - but there is no change to before - guess it is mostly unused now anyway

@karalabe karalabe merged commit a5c0cfb into ethereum:master Jan 31, 2022
@karalabe karalabe added this to the 1.10.16 milestone Jan 31, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Feb 1, 2022
* build: append GOARM to arm lint download URL

otherwise it fails with:

downloading from https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm.tar.gz
ci.go:347: download error: status 404

* build: increase timeout for lint

Otherwise it times out on a pi

* Increase timeout even further

saw longer build times
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
* build: append GOARM to arm lint download URL

otherwise it fails with:

downloading from https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm.tar.gz
ci.go:347: download error: status 404

* build: increase timeout for lint

Otherwise it times out on a pi

* Increase timeout even further

saw longer build times
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants