anchore / grant

Search an SBOM for licenses and the packages they belong to
Apache License 2.0
59 stars 3 forks source link

failed to install tool "bouncer": unable to find matching asset for wagoodman/go-bouncer@v0.1.0 #76

Closed popey closed 3 months ago

popey commented 4 months ago

👋 Hello! Me again!

I am unable to build from source, using checkout of main.

I'm using an M3 Mac (so arm64) and go go1.22.2. I saw a Makefile (and an empty CONTRIBUTING.md and ran make

make
[info] fetching release script for tag='v0.7.0'
[info] using release tag='v0.7.0' version='0.7.0' os='darwin' arch='arm64'
[info] installed .tool/binny
task: [check-go-mod-tidy] .github/scripts/go-mod-tidy-check.sh && echo "go.mod and go.sum are tidy!"
go: downloading github.com/anchore/bubbly v0.0.0-20231115205105-6542675d79fe
go: downloading github.com/google/licenseclassifier/v2 v2.0.0
go: downloading github.com/docker/docker v26.0.0+incompatible
go: downloading github.com/mholt/archiver/v3 v3.5.1
go.mod and go.sum are tidy!
[0000]  INFO binny version: 0.7.0
[0000]  INFO installing tool=gh version=v2.35.0
[0000]  INFO installing tool=binny version=v0.6.2
[0000]  INFO installing tool=grant version=fdd59f6e182dfbf5543addd6111d92a9721a92b0
[0002]  INFO installing tool=quill version=v0.4.1
[0002]  INFO installing tool=chronicle version=v0.8.0
[0004]  INFO installing tool=gosimports version=v0.3.8
[0004]  INFO installing tool=glow version=v1.5.1
[0005]  INFO installing tool=goreleaser version=v1.21.1
[0005]  INFO installing tool=golangci-lint version=v1.54.2
[0006]  INFO installing tool=bouncer version=v0.1.0
[0006]  INFO installing tool=syft version=v0.95.0
[0009]  WARN failed to install all tools failed=[bouncer]
1 error occurred:
    * failed to install tool "bouncer": unable to find matching asset for wagoodman/go-bouncer@v0.1.0
task: Failed to run task "default": exit status 1
make: *** [default] Error 201
spiffcs commented 4 months ago

👋 Hi @popey - If you pull from main I think this should be resolved now where the Taskfile is using the correct bouncer version.

There is an updated contributing.md file with a few best paths for getting started.

For more information about the make commands available see: make help

Thanks again for the issue!

If you find that this is resolved please just give it a close =)

Fresh clone of grant on my machine with latest main:

[I] hal@CPHILLIPS ~/GolandProjects/grant (main)
❯ make
[info] fetching release script for tag='v0.7.0'
[info] using release tag='v0.7.0' version='0.7.0' os='darwin' arch='amd64'
[info] installed .tool/binny
task: [check-go-mod-tidy] .github/scripts/go-mod-tidy-check.sh && echo "go.mod and go.sum are tidy!"
go.mod and go.sum are tidy!
[0000]  INFO binny version: 0.7.0
[0000]  INFO installing tool=gh version=v2.35.0
[0000]  INFO installing tool=binny version=v0.6.2
[0000]  INFO installing tool=grant version=98da3fb03b94fa0a4954f32a0d8fee5c62bc7ef0
[0001]  INFO installing tool=quill version=v0.4.1
[0001]  INFO installing tool=chronicle version=v0.8.0
[0001]  INFO installing tool=gosimports version=v0.3.8
[0002]  INFO installing tool=glow version=v1.5.1
[0002]  INFO installing tool=cosign version=v2.2.4
[0003]  INFO installing tool=goreleaser version=v1.25.1
[0006]  INFO installing tool=golangci-lint version=v1.54.2
[0007]  INFO installing tool=bouncer version=v0.4.0
[0007]  INFO installing tool=syft version=v1.2.0
[0033]  INFO tools installed
task: [lint] .tool/golangci-lint run --tests=false
task: [unit] go test -coverprofile .tmp/unit-coverage-details.txt github.com/anchore/grant/cmd/grant github.com/anchore/grant/cmd/grant/cli github.com/anchore/grant/cmd/grant/cli/command github.com/anchore/grant/cmd/grant/cli/internal github.com/anchore/grant/cmd/grant/cli/internal/check github.com/anchore/grant/cmd/grant/cli/internal/list github.com/anchore/grant/cmd/grant/cli/internal/ui github.com/anchore/grant/cmd/grant/cli/option github.com/anchore/grant/cmd/grant/cli/tui github.com/anchore/grant/event github.com/anchore/grant/grant github.com/anchore/grant/grant/evalutation github.com/anchore/grant/internal github.com/anchore/grant/internal/bus github.com/anchore/grant/internal/input github.com/anchore/grant/internal/log github.com/anchore/grant/internal/redact github.com/anchore/grant/internal/spdxlicense github.com/anchore/grant/internal/spdxlicense/generate
    github.com/anchore/grant/cmd/grant      coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli      coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/command      coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/internal     coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/internal/check       coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/internal/list        coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/option       coverage: 0.0% of statements
    github.com/anchore/grant/cmd/grant/cli/tui      coverage: 0.0% of statements
    github.com/anchore/grant/event      coverage: 0.0% of statements
ok      github.com/anchore/grant/cmd/grant/cli/internal/ui  0.389s  coverage: 23.8% of statements
?       github.com/anchore/grant/internal   [no test files]
    github.com/anchore/grant/internal/bus       coverage: 0.0% of statements
    github.com/anchore/grant/internal/input     coverage: 0.0% of statements
    github.com/anchore/grant/internal/log       coverage: 0.0% of statements
    github.com/anchore/grant/internal/redact        coverage: 0.0% of statements
    github.com/anchore/grant/internal/spdxlicense       coverage: 0.0% of statements
    github.com/anchore/grant/internal/spdxlicense/generate      coverage: 0.0% of statements
ok      github.com/anchore/grant/grant  1.261s  coverage: 5.2% of statements
ok      github.com/anchore/grant/grant/evalutation  3.697s  coverage: 19.9% of statements
Coverage: 9.9%
task: [snapshot] cat .goreleaser.yaml > .tmp/goreleaser.yaml
echo "dist: snapshot" >> .tmp/goreleaser.yaml

task: [snapshot] .tool/goreleaser release --clean --skip=publish --skip=sign --snapshot --config .tmp/goreleaser.yaml
  • starting release...
  • loading                                          path=.tmp/goreleaser.yaml
  • skipping announce, publish, sign and validate...
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=98da3fb03b94fa0a4954f32a0d8fee5c62bc7ef0 branch=main current_tag=v0.2.0 previous_tag=v0.1.3 dirty=false
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
    • DEPRECATED:  brews.tap  should not be used anymore, check https://goreleaser.com/deprecations#brewstap for more info
  • snapshotting
    • building snapshot...                           version=0.2.0-SNAPSHOT-98da3fb
  • checking distribution directory
  • setting up metadata
  • storing release metadata
    • writing                                        file=snapshot/metadata.json
  • loading go mod information
  • build prerequisites
  • writing effective config file
    • writing                                        config=snapshot/config.yaml
  • building binaries
    • building                                       binary=snapshot/darwin-build_darwin_arm64/grant
    • building                                       binary=snapshot/linux-build_linux_arm64/grant
    • building                                       binary=snapshot/linux-build_linux_amd64_v1/grant
    • building                                       binary=snapshot/darwin-build_darwin_amd64_v1/grant
    • running hook                                   hook=.tool/quill sign-and-notarize "/Users/hal/GolandProjects/grant/snapshot/darwin-build_darwin_amd64_v1/grant" --dry-run=true --ad-hoc=true -vv
    • running hook                                   hook=.tool/quill sign-and-notarize "/Users/hal/GolandProjects/grant/snapshot/darwin-build_darwin_arm64/grant" --dry-run=true --ad-hoc=true -vv
    • took: 9s
  • archives
    • creating                                       archive=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_darwin_arm64.tar.gz
    • creating                                       archive=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_darwin_amd64.tar.gz
    • creating                                       archive=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_amd64.tar.gz
    • creating                                       archive=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_arm64.tar.gz
    • took: 7s
  • linux packages
    • creating                                       package=grant format=deb arch=amd64v1 file=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_amd64.deb
    • creating                                       package=grant format=deb arch=arm64 file=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_arm64.deb
    • creating                                       package=grant format=rpm arch=amd64v1 file=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_amd64.rpm
    • creating                                       package=grant format=rpm arch=arm64 file=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_arm64.rpm
    • took: 2s
  • cataloging artifacts
    • cataloging                                     cmd=../.tool/syft artifact=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_darwin_arm64.tar.gz sbom=[grant_0.2.0-SNAPSHOT-98da3fb_darwin_arm64.sbom]
    • cataloging                                     cmd=../.tool/syft artifact=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_arm64.tar.gz sbom=[grant_0.2.0-SNAPSHOT-98da3fb_linux_arm64.sbom]
    • cataloging                                     cmd=../.tool/syft artifact=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_linux_amd64.tar.gz sbom=[grant_0.2.0-SNAPSHOT-98da3fb_linux_amd64.sbom]
    • cataloging                                     cmd=../.tool/syft artifact=snapshot/grant_0.2.0-SNAPSHOT-98da3fb_darwin_amd64.tar.gz sbom=[grant_0.2.0-SNAPSHOT-98da3fb_darwin_amd64.sbom]
    • took: 6s
  • calculating checksums
  • homebrew tap formula
    • guessing install                               install=[bin.install "grant"]
    • guessing install                               install=[bin.install "grant"]
    • guessing install                               install=[bin.install "grant"]
    • guessing install                               install=[bin.install "grant"]
    • writing                                        formula=snapshot/homebrew/grant.rb
  • storing artifacts metadata
    • writing                                        file=snapshot/artifacts.json
  • you are using deprecated options, check the output above for details
  • release succeeded after 24s
  • thanks for using goreleaser!
spiffcs commented 3 months ago

@popey - I validated the above works on a fresh laptop with OSX installed. Closing this for now, but if you find on your OS this is still failing please let me know and I'll reopen. Thanks again!

popey commented 3 months ago

Oops! Sorry I missed the notification! This indeed works! Thank you!