You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running git clone git@github.com:anchore/yardstick ytest && cd ytest && make bootstrap && poetry install && make all fails because it can't install an old enough grype on main.
What you expected to happen:
All the validation targets should pass on a clean checkout of main.
How to reproduce it (as minimally and precisely as possible):
git clone git@github.com:anchore/yardstick ytest && cd ytest && make bootstrap && poetry install && make all
one
[info] checking github for release tag='v0.27.0'
[info] fetching release script for tag='v0.27.0'
anchore/grype info checking GitHub for tag 'v0.27.0'
anchore/grype info found version: 0.27.0 for v0.27.0/darwin/arm64
Traceback (most recent call last):
File "/private/tmp/ytest/tests/cli/venv/bin/yardstick", line 8, in <module>
sys.exit(cli())
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/private/tmp/ytest/tests/cli/venv/lib/python3.9/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/private/tmp/ytest/src/yardstick/cli/result.py", line 45, in capture_results
capture.result_set(
File "/private/tmp/ytest/src/yardstick/capture.py", line 164, in result_set
scan_config = one(scan_request, producer_state=producer_data_path, profiles=profiles)
File "/private/tmp/ytest/src/yardstick/capture.py", line 105, in one
match_results, raw_json = run_scan(config=scan_config, profile=profile_obj)
File "/private/tmp/ytest/src/yardstick/capture.py", line 32, in run_scan
tool = tool_cls.install(version=config.tool_version, path=path, use_cache=not reinstall, **kwargs)
File "/private/tmp/ytest/src/yardstick/tool/grype.py", line 207, in install
tool_obj = cls._install_from_installer(version=version, path=path, use_cache=use_cache, **kwargs)
File "/private/tmp/ytest/src/yardstick/tool/grype.py", line 65, in _install_from_installer
os.chmod(f"{path}/grype", 0o755)
FileNotFoundError: [Errno 2] No such file or directory: '.yardstick/tools/grype/v0.27.0/grype'
Exited with 1
make[1]: *** [test] Error 1
make: *** [cli] Error 2
Environment:
Output of yardstick version: yardstick 0.0.0 (using a dev build off main)
OS (e.g: cat /etc/os-release or similar): M1 macbook pro
The text was updated successfully, but these errors were encountered:
What happened:
Running
git clone git@github.com:anchore/yardstick ytest && cd ytest && make bootstrap && poetry install && make all
fails because it can't install an old enough grype onmain
.What you expected to happen:
All the validation targets should pass on a clean checkout of
main
.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Hypothesis
This is likely because the requested version of grype, https://github.com/anchore/grype/releases/tag/v0.27.0, only has a zip for the
darwin_arm64
image, but has a.dmg
fordarwin_amd64
.Later releases of grype, such as https://github.com/anchore/grype/releases/tag/v0.50.2, have a
.tar.gz
for both versions.Stacktrace of failure:
Environment:
yardstick version
:yardstick 0.0.0
(using a dev build offmain
)cat /etc/os-release
or similar): M1 macbook proThe text was updated successfully, but these errors were encountered: