Failing with ..AssetResolverError: Too many matches found for trivy
Closed this issue · 5 comments
While using https://github.com/devcontainers-contrib/features/blob/main/src/trivy/README.md devcontainer feature.
It fails with "nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.45.0_Linux-ARM.tar.gz', 'trivy_0.45.0_Linux-ARM64.tar.gz']"
I have tried to use specific version of trivy
but that did not help either
Full Logs are below
2023-09-25T12:34:13.775Z] [2/2] STEP 9/20: RUN --mount=type=bind,from=dev_containers_feature_content_source,source=trivy_3,target=/tmp/build-features-src/trivy_3 cp -ar /tmp/build-features-src/trivy_3 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/trivy_3 && cd /tmp/dev-container-features/trivy_3 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/trivy_3
[2023-09-25T12:34:13.892Z] ===========================================================================
Feature : Trivy (via Github Releases)
Description : Trivy is a comprehensive and versatile security scanner. It finds vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more.
Id : ghcr.io/devcontainers-contrib/features/trivy
Version : 1.0.8
Documentation : http://github.com/devcontainers-contrib/features/tree/main/src/trivy
Options :
VERSION="0.45.0"
===========================================================================
[2023-09-25T12:34:15.318Z] nanolayer
[2023-09-25T12:34:18.479Z] cd /tmp/tmpji0jzszo && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" REPO="aquasecurity/trivy" BINARYNAMES="trivy" VERSION="0.45.0" ASSETREGEX="" RELEASETAGREGEX="" BINLOCATION="/usr/local/bin" LIBNAME="" LIBLOCATION="/usr/local/lib" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-BFFuv88Cq4/nanolayer" bash -i +H ./install.sh
Found a pre-existing nanolayer which were given in env variable: /tmp/nanolayer-BFFuv88Cq4/nanolayer
[2023-09-25T12:34:18.591Z] skipping usage of pre-existing nanolayer. (required version v0.5.3 does not match existing version 0.5.3)
[2023-09-25T12:34:20.231Z] nanolayer
[2023-09-25T12:34:21.534Z] 'bom.json' filtered by '(\.json$|\.sbom$|\.blockmap$)' (negative)
[2023-09-25T12:34:21.534Z]
[2023-09-25T12:34:21.535Z] 'trivy_0.45.0_checksums.txt' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
[2023-09-25T12:34:21.536Z] 'trivy_0.45.0_checksums.txt.pem' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
[2023-09-25T12:34:21.538Z]
[2023-09-25T12:34:21.541Z] 'trivy_0.45.0_checksums.txt.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
[2023-09-25T12:34:21.542Z] 'trivy_0.45.0_FreeBSD-32bit.tar.gz' filtered by '(32[Bb]it|32\-[Bb]it)' (negative)
'trivy_0.45.0_FreeBSD-32bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_FreeBSD-32bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_FreeBSD-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
[2023-09-25T12:34:21.542Z] 'trivy_0.45.0_FreeBSD-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_Linux-32bit.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-32bit.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
[2023-09-25T12:34:21.544Z] 'trivy_0.45.0_Linux-32bit.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-32bit.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-32bit.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-32bit.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-32bit.tar.gz' filtered by '(32[Bb]it|32\-[Bb]it)' (negative)
[2023-09-25T12:34:21.544Z]
'trivy_0.45.0_Linux-32bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_Linux-32bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_Linux-64bit.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-64bit.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-64bit.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-64bit.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-64bit.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
[2023-09-25T12:34:21.545Z]
[2023-09-25T12:34:21.545Z] 'trivy_0.45.0_Linux-64bit.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
[2023-09-25T12:34:21.546Z] 'trivy_0.45.0_Linux-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_Linux-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_Linux-ARM.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
[2023-09-25T12:34:21.546Z] 'trivy_0.45.0_Linux-ARM.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
[2023-09-25T12:34:21.547Z] 'trivy_0.45.0_Linux-ARM.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_Linux-ARM64.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM64.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM64.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM64.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
[2023-09-25T12:34:21.547Z] 'trivy_0.45.0_Linux-ARM64.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM64.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
'trivy_0.45.0_Linux-ARM64.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_Linux-ARM64.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_Linux-PPC64LE.deb' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.deb.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.deb.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.rpm' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.rpm.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.rpm.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.tar.gz' filtered
[2023-09-25T12:34:21.548Z] by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.tar.gz.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-PPC64LE.tar.gz.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
'trivy_0.45.0_Linux-s390x.deb' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.deb.pem' filtered by '(s390x|s390)' (negative)
[2023-09-25T12:34:21.548Z] 'trivy_0.45.0_Linux-s390x.deb.sig' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.rpm' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.rpm.pem' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.rpm.sig' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.tar.gz' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.tar.gz.pem' filtered by '(s390x|s390)' (negative)
'trivy_0.45.0_Linux-s390x.tar.gz.sig' filtered by '(s390x|s390)' (negative)
[2023-09-25T12:34:21.549Z] 'trivy_0.45.0_macOS-64bit.tar.gz' filtered by '([Mm]ac[Oo][Ss]|[Mm]ac\-[Oo][Ss]|\-osx\-|_osx_|[Dd]arwin|\.dmg)' (negative)
'trivy_0.45.0_macOS-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_macOS-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_macOS-ARM64.tar.gz' filtered by '([Mm]ac[Oo][Ss]|[Mm]ac\-[Oo][Ss]|\-osx\-|_osx_|[Dd]arwin|\.dmg)' (negative)
'trivy_0.45.0_macOS-ARM64.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_macOS-ARM64.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
'trivy_0.45.0_windows-64bit.zip' filtered by '(windows|Windows|WINDOWS|win32|\-win\-|\.msi$|.msixbundle$|\.exe$)' (negative)
'trivy_0.45.0_windows-64bit.zip.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
'trivy_0.45.0_windows-64bit.zip.sig' filtered by '(\.sig$|\.text
[2023-09-25T12:34:21.549Z] $|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
[2023-09-25T12:34:21.550Z] 'trivy_0.45.0_FreeBSD-64bit.tar.gz' filtered by '([Aa]rm64|ARM64|\-ARM|\-arm\-)'
'trivy_0.45.0_Linux-64bit.tar.gz' filtered by '([Aa]rm64|ARM64|\-ARM|\-arm\-)'
[2023-09-25T12:34:21.551Z] 'trivy_0.45.0_Linux-ARM.tar.gz' filtered by '(?i)(ubuntu)'
'trivy_0.45.0_Linux-ARM64.tar.gz' filtered by '(?i)(ubuntu)'
[2023-09-25T12:34:21.551Z] 'trivy_0.45.0_Linux-ARM.tar.gz' filtered by '.*static.*'
'trivy_0.45.0_Linux-ARM64.tar.gz' filtered by '.*static.*'
[2023-09-25T12:34:21.552Z] 'trivy_0.45.0_Linux-ARM.tar.gz' filtered by '(?i)(debian)'
'trivy_0.45.0_Linux-ARM64.tar.gz' filtered by '(?i)(debian)'
[2023-09-25T12:34:21.578Z] Traceback (most recent call last):
[2023-09-25T12:34:21.579Z] File "<string>", line 1, in <module>
[2023-09-25T12:34:21.579Z] File "nanolayer.__main__", line 50, in main
[2023-09-25T12:34:21.580Z] File "typer.main", line 328, in __call__
[2023-09-25T12:34:21.581Z] File "typer.main", line 311, in __call__
[2023-09-25T12:34:21.581Z] File "click.core", line 1157, in __call__
File "typer.core", line 778, in main
File "typer.core", line 216, in _main
File "click.core", line 1688, in invoke
File "click.core", line 1688, in invoke
File "click.core", line 1434, in invoke
File "click.core", line 783, in invoke
File "typer.main", line 683, in wrapper
File "nanolayer.cli.install", line 153, in install_gh_release_binary
File "nanolayer.installers.gh_release.gh_release_installer", line 167, in install
File "nanolayer.installers.gh_release.resolvers.asset_resolver", line 304, in resolve
nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.45.0_Linux-ARM.tar.gz', 'trivy_0.45.0_Linux-ARM64.tar.gz']
[2023-09-25T12:34:21.692Z] Traceback (most recent call last):
[2023-09-25T12:34:21.692Z] File "<string>", line 1, in <module>
[2023-09-25T12:34:21.692Z] File "nanolayer.__main__", line 50, in main
[2023-09-25T12:34:21.693Z] File "typer.main", line 328, in __call__
[2023-09-25T12:34:21.693Z] File "typer.main", line 311, in __call__
[2023-09-25T12:34:21.693Z] File "click.core", line 1157, in __call__
[2023-09-25T12:34:21.693Z] File "typer.core", line 778, in main
[2023-09-25T12:34:21.693Z] File "typer.core", line 216, in _main
[2023-09-25T12:34:21.693Z] File "click.core", line 1688, in invoke
[2023-09-25T12:34:21.693Z] File "click.core", line 1688, in invoke
File "click.core", line 1434, in invoke
[2023-09-25T12:34:21.693Z] File "click.core", line 783, in invoke
[2023-09-25T12:34:21.694Z] File "typer.main", line 683, in wrapper
[2023-09-25T12:34:21.694Z] File "nanolayer.cli.install", line 66, in install_devcontainer_feature
[2023-09-25T12:34:21.694Z] File "nanolayer.installers.devcontainer_feature.oci_feature_installer", line 135, in install
[2023-09-25T12:34:21.694Z] File "nanolayer.utils.invoker", line 59, in invoke
[2023-09-25T12:34:21.695Z] nanolayer.utils.invoker.Invoker.InvokerException: The command 'cd /tmp/tmpji0jzszo && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" REPO="aquasecurity/trivy" BINARYNAMES="trivy" VERSION="0.45.0" ASSETREGEX="" RELEASETAGREGEX="" BINLOCATION="/usr/local/bin" LIBNAME="" LIBLOCATION="/usr/local/lib" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-BFFuv88Cq4/nanolayer" bash -i +H ./install.sh' failed. error: Return Code: 1. see logs for details.
[2023-09-25T12:34:21.770Z] ERROR: Feature "Trivy (via Github Releases)" (ghcr.io/devcontainers-contrib/features/trivy) failed to install! Look at the documentation at http://github.com/devcontainers-contrib/features/tree/main/src/trivy for help troubleshooting this error.
[2023-09-25T12:34:21.910Z] Error: building at STEP "RUN --mount=type=bind,from=dev_containers_feature_content_source,source=trivy_3,target=/tmp/build-features-src/trivy_3 cp -ar /tmp/build-features-src/trivy_3 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/trivy_3 && cd /tmp/dev-container-features/trivy_3 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/trivy_3": while running runtime: exit status 1
[2023-09-25T12:34:21.913Z] Stop (43876 ms): Run: podman buildx build --load --build-context dev_containers_feature_content_source=/var/folders/qf/35fdm64d3hz4k4hd0g11118c0000gn/T/devcontainercli/container-features/0.51.1-1695645206637 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-skycompute-7f44036d371c05cd11fee86088e03b0a833349e335a04856d31b932f24e300ba-features -f /var/folders/qf/35fdm64d3hz4k4hd0g11118c0000gn/T/devcontainercli/container-features/0.51.1-1695645206637/Dockerfile.extended /Users/pramod/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2023-09-25T12:34:21.914Z] Error: Command failed: podman buildx build --load --build-context dev_containers_feature_content_source=/var/folders/qf/35fdm64d3hz4k4hd0g11118c0000gn/T/devcontainercli/container-features/0.51.1-1695645206637 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:jammy --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-skycompute-7f44036d371c05cd11fee86088e03b0a833349e335a04856d31b932f24e300ba-features -f /var/folders/qf/35fdm64d3hz4k4hd0g11118c0000gn/T/devcontainercli/container-features/0.51.1-1695645206637/Dockerfile.extended /Users/pramod/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2023-09-25T12:34:21.914Z] at gAA (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:462:1066)
[2023-09-25T12:34:21.914Z] at FK (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:462:1002)
[2023-09-25T12:34:21.914Z] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2023-09-25T12:34:21.914Z] at async FAA (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:479:3660)
[2023-09-25T12:34:21.914Z] at async GC (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:479:4775)
[2023-09-25T12:34:21.914Z] at async VeA (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:611:12240)
[2023-09-25T12:34:21.914Z] at async WeA (/Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js:611:11981)
[2023-09-25T12:34:21.919Z] Stop (55625 ms): Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/pramod/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --container-session-data-folder /tmp/devcontainers-9b0664ea-e900-4c3c-aae8-0fb3a1a169b41695645205385 --workspace-folder /Users/pramod/github/playground/skycompute --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/pramod/github/playground/skycompute --id-label devcontainer.config_file=/Users/pramod/github/playground/skycompute/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/pramod/github/playground/skycompute/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-09-25T12:34:21.919Z] Exit code 1
[2023-09-25T12:34:21.920Z] Command failed: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/pramod/.vscode/extensions/ms-vscode-remote.remote-containers-0.309.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/pramod/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --container-session-data-folder /tmp/devcontainers-9b0664ea-e900-4c3c-aae8-0fb3a1a169b41695645205385 --workspace-folder /Users/pramod/github/playground/skycompute --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/pramod/github/playground/skycompute --id-label devcontainer.config_file=/Users/pramod/github/playground/skycompute/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/pramod/github/playground/skycompute/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-09-25T12:34:21.920Z] Exit code 1
Thanks for reporting! the problem is the arm64 filter regex accepts also mentions of "ARM" , in the newer version this is fixed and the correct ARM64 is chosen.
@kumarpramod You can try this feature to see if now working: ghcr.io/devcontainers-contrib/features/trivy:1.0.9
- it uses the latest nanolayer version and working correctly on my QEMU environment (I dont have a mac)
@danielbraun89 - I'm a colleague of @kumarpramod, The suggested solution seems to work for me at least. I'm running M1, ARM64. I've pinged @kumarpramod internally and asked them to confirm as well.
@SebRosander thanks for update! closing for now, will reopen if this will recure
@danielbraun89 It is still broken for me on the mentioned version with the same error. I pinned it to 1.0.9
as mentioned in #54 (comment) to make sure that I have the fix, but no luck.
Container Build Logs
Complete log: remoteContainers-2023-10-30T18-03-01.836Z.log
The interesting parts:
#0 0.147 ===========================================================================
#0 0.147 Feature : Trivy (via Github Releases)
#0 0.147 Description : Trivy is a comprehensive and versatile security scanner. It finds vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more.
#0 0.147 Id : ghcr.io/devcontainers-contrib/features/trivy
#0 0.147 Version : 1.0.9
#0 0.147 Documentation : http://github.com/devcontainers-contrib/features/tree/main/src/trivy
#0 0.147 Options :
#0 0.147 VERSION="0.46.1"
#0 0.147 ===========================================================================
...
#0 7.649 nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError:
Too many matches found: ['trivy_0.46.1_Linux-64bit.tar.gz', 'trivy_0.46.1_Linux-ARM.tar.gz']
VSCode
Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.1.60
Sandboxed: No
devcontainer.json
{
"name": "Ubuntu",
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"runArgs": ["--network=host"],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "20.10.24",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/git:1": {
"ppa": true,
"version": "2.40.1"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.20.4"
},
"ghcr.io/devcontainers/features/java:1": {
"installGradle": true,
"installMaven": false,
"installAnt": false,
"version": "11.0.12-open",
"jdkDistro": "open",
"gradleVersion": "7.5.1",
"mavenVersion": "3.8.6",
"antVersion": "1.10.12"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "18.16.0"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.63",
"profile": "complete"
},
"ghcr.io/devcontainers-contrib/features/actions-runner:1": {
"version": "latest",
"dotnetVersion": "latest"
},
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
"ghcr.io/devcontainers-contrib/features/dive:1": {
"version": "v0.10.0"
},
"ghcr.io/devcontainers-contrib/features/gitmux:1": {
"version": "v0.10.2"
},
"ghcr.io/devcontainers-contrib/features/ionic-cli:2": {
"version": "7.1.1"
},
"ghcr.io/devcontainers-contrib/features/kind:1": {
"version": "v0.18.0"
},
"ghcr.io/devcontainers-contrib/features/protoc:1": {
"version": "v3.20.3"
},
"ghcr.io/devcontainers-contrib/features/trivy:1.0.9": {
"version": "0.46.1"
}
},
"customizations": {
"vscode": {
"extensions": [
"bierner.markdown-mermaid",
"mhutchie.git-graph",
"alefragnani.bookmarks",
"yzhang.markdown-all-in-one",
"trabpukcip.vscode-npm-scripts",
"jebbs.plantuml",
"ms-vscode-remote.vscode-remote-extensionpack",
"juanblanco.solidity",
"dbaeumer.vscode-eslint",
"42crunch.vscode-openapi",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"github.vscode-pull-request-github",
"codeandstuff.package-json-upgrade"
]
}
}
}