[Bug]: make bootstrap fails when checking for golangci-lint version and attempting install

Open Beginner friendly
#2,863 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github, go, shell

Research direction

Open the Makefile and inspect the bootstrap recipe, which the report identifies as the failing step. Compare the golangci-lint installer URL there with the working main branch URL shown in the issue. Done when make bootstrap installs or checks golangci-lint successfully on the reported platform.

Written by the indexing model from the issue text.

Description

bug needs triage
Steps to Reproduce

Pull Down latest source for step-ca v0.30.2 from Releases

Go is installed already

Expand per usual

cd certificates-0.30.2
 make bootstrap
Your Environment
  • OS - DietPi 10.9.3
  • step-ca Version - 0.29.0
Expected Behavior

Checks on golangci-lint version, and if necessary downloads and installs latest from GitHub

make bootstrap
golangci/golangci-lint info checking GitHub for tag 'latest'
golangci/golangci-lint info found version: 2.15.0 for v2.15.0/linux/arm64
golangci/golangci-lint info installed /root/go/bin/golangci-lint
go: downloading golang.org/x/vuln v1.10.0
...

and bootstrapping completes.

Actual Behavior
golangci/golangci-lint info checking GitHub for tag 'latest'
golangci/golangci-lint info found version: 2.15.0 for v2.15.0/linux/arm64
golangci/golangci-lint err hash_sha256_verify checksum for '/tmp/tmp.DohgB7bYSB/golangci-lint-2.15.0-linux-arm64.tar.gz' did not verify b4d8f17068b35ee6060cc2f69a16fb48740d706fbba81661c318649c114a6998
d4cc925874829d4f854185e8b6ed35a5ead32732741a187339c6bb7f74577d95 vs b4d8f17068b35ee6060cc2f69a16fb48740d706fbba81661c318649c114a6998
make: *** [Makefile:21: bootstrap] Error 1
Additional Context

Trying to upgrade to v0.30.2 from v0.29.0 from source

Per Issue 6745 on golanci-lint GitHub repo, the master branch is superceded by main.

Easy to fix if we change from:

$Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin latest

To:

$Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | sh -s -- -b $$(go env GOPATH)/bin latest
Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

See fix above.

Dominant language
Go
Stars
8.9k
Forks
599
Avg merge
21h 20m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/certificates

All issues in smallstep/certificates

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.