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
Using Syft with search remote and local modules for licenses can cause the terminal to hang, first reported in #2615. I'm breaking this out into a separate issue since this doesn't seem Windows specific.
What you expected to happen:
Syft TUI should not hang
Steps to reproduce the issue:
Create a syft config with the following contents
# try-repro.yamlgolang:
# search for go package licences in the GOPATH of the system running Syft, note that this is outside the# container filesystem and potentially outside the root of a local directory scan# SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES env varsearch-local-mod-cache-licenses: true# specify an explicit go mod cache directory, if unset this defaults to $GOPATH/pkg/mod or $HOME/go/pkg/mod# SYFT_GOLANG_LOCAL_MOD_CACHE_DIR env varlocal-mod-cache-dir: ""# search for go package licences by retrieving the package from a network proxy# SYFT_GOLANG_SEARCH_REMOTE_LICENSES env varsearch-remote-licenses: true# remote proxy to use when retrieving go packages from the network,# if unset this defaults to $GOPROXY followed by https://proxy.golang.org# SYFT_GOLANG_PROXY env varproxy: ""# specifies packages which should not be fetched by proxy# if unset this defaults to $GONOPROXY# SYFT_GOLANG_NOPROXY env varno-proxy: ""
Run Syft pointing at a directory with several Go dependencies. For this we'll use anchore/clio:
What happened:
Using Syft with search remote and local modules for licenses can cause the terminal to hang, first reported in #2615. I'm breaking this out into a separate issue since this doesn't seem Windows specific.
What you expected to happen:
Syft TUI should not hang
Steps to reproduce the issue:
Create a syft config with the following contents
Run Syft pointing at a directory with several Go dependencies. For this we'll use anchore/clio:
syft -o json -c try-repro.yaml dir:clio > /tmp/sbom.json
Anything else we need to know?:
Running with
-v
(or any other verbosity level) prevents this, which probably means that the fancy TUI code is what's hanging the terminal.This has been repro'd on Windows powershell, and on m1 mac zshell.
We probably don't need a TUI element for each attempt to resolve the license of a go module.
Environment:
syft version
:cat /etc/os-release
or similar): M1 macThe text was updated successfully, but these errors were encountered: