devcontainers-contrib / features

🐳 Extra add-in features for Devcontainers and GitHub Codespaces
MIT License
246 stars 128 forks source link

[Bug]: nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.53.0_Linux-64bit.tar.gz', 'trivy_0.53.0_Linux-ARM.tar.gz'] #620

Open dvgitit opened 4 months ago

dvgitit commented 4 months ago

Feature id and version

ghcr.io/devcontainers-contrib/features/trivy:1.0.9

Devcontainer base Image

mcr.microsoft.com/devcontainers/python:latest

What happened?

Apparently resolved two packages: Linux-64bit and Linux-ARM. But the underlying architecture is amd64

.devcontainer/devcontainer.json extract:

...
    "features": {
        "ghcr.io/devcontainers-contrib/features/trivy:1.0.9": {
            "version":"latest"
        }
    }
...

build command: devcontainer build --workspace-folder . --image-name ${REGISTRY_IMAGE}:latest

In comparison, the go-task, works fine with a similar mechanism.

Relevant log output

[36 ms] @devcontainers/cli 0.65.0. Node.js v21.4.0. linux 5.4.0-186-generic x64.
[803 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/go-task:1'...
[1466 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/direnv:1'...
[1814 ms] Resolving Feature dependencies for 'ghcr.io/rio/features/chezmoi:1'...
[2209 ms] Resolving Feature dependencies for 'ghcr.io/rio/features/k3d:1'...
[2612 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/kubectl-helm-minikube:1'...
[2942 ms] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/trivy:1'...
[3283 ms] Soft-dependency 'ghcr.io/devcontainers-contrib/features/gh-release' is not required.  Removing from installation order...
[3283 ms] Soft-dependency 'ghcr.io/devcontainers-contrib/features/gh-release' is not required.  Removing from installation order...
[3283 ms] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[3283 ms] Soft-dependency 'ghcr.io/devcontainers-contrib/features/gh-release' is not required.  Removing from installation order...
[4568 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808/Dockerfile-with-features -t registry.opencode.de/ig-bvc/ap-5.11-entwicklungsumgebung/elegua/prebuilt-devcontainer:latest --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /data/home/myuser/projects/igbvc/ap5.11/prebuilt-devcontainer
[+] Building 8.0s (17/20)                                                                                                                                                                       docker:default
 => [internal] load build definition from Dockerfile-with-features                                                                                                                                        0.0s
 => => transferring dockerfile: 5.37kB                                                                                                                                                                    0.0s
 => resolve image config for docker-image://docker.io/docker/dockerfile:1.4                                                                                                                               0.5s
 => CACHED docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                                           0.0s
 => [internal] load metadata for mcr.microsoft.com/devcontainers/python:latest                                                                                                                            0.1s
 => [context dev_containers_feature_content_source] load .dockerignore                                                                                                                                    0.0s
 => => transferring dev_containers_feature_content_source: 2B                                                                                                                                             0.0s
 => [context dev_containers_feature_content_source] load from client                                                                                                                                      0.0s
 => => transferring dev_containers_feature_content_source: 19.22kB                                                                                                                                        0.0s
 => [dev_container_auto_added_stage_label 1/2] FROM mcr.microsoft.com/devcontainers/python:latest@sha256:d79353264c02d921f736cb31a8a1c1a3a1498f2e5e7097c52ddaf1a0a92fb6ec                                 0.0s
 => CACHED [dev_container_auto_added_stage_label 2/2] RUN pip3 --disable-pip-version-check --no-cache-dir install constructs jsii pylint     && rm -rf /tmp/pip-tmp                                       0.0s
 => CACHED [dev_containers_target_stage 1/9] RUN mkdir -p /tmp/dev-container-features                                                                                                                     0.0s
 => CACHED [dev_containers_feature_content_normalize 1/2] COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/                                        0.0s
 => CACHED [dev_containers_feature_content_normalize 2/2] RUN chmod -R 0755 /tmp/build-features/                                                                                                          0.0s
 => CACHED [dev_containers_target_stage 2/9] COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features                                                        0.0s
 => CACHED [dev_containers_target_stage 3/9] RUN echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) | c  0.0s
 => CACHED [dev_containers_target_stage 4/9] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=direnv_0,target=/tmp/build-features-src/direnv_0     cp -ar /tmp/build-features-src  0.0s
 => CACHED [dev_containers_target_stage 5/9] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=go-task_1,target=/tmp/build-features-src/go-task_1     cp -ar /tmp/build-features-s  0.0s
 => ERROR [dev_containers_target_stage 6/9] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=trivy_2,target=/tmp/build-features-src/trivy_2     cp -ar /tmp/build-features-src/tr  6.9s
------                                                                                                                                                                                                         
 > [dev_containers_target_stage 6/9] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=trivy_2,target=/tmp/build-features-src/trivy_2     cp -ar /tmp/build-features-src/trivy_2 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/trivy_2  && cd /tmp/dev-container-features/trivy_2  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/trivy_2:                                                                                                                                                                   
0.311 ===========================================================================                                                                                                                              
0.311 Feature       : Trivy (via Github Releases)                                                                                                                                                              
0.311 Description   : Trivy is a comprehensive and versatile security scanner. It finds vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more.
0.311 Id            : ghcr.io/devcontainers-contrib/features/trivy
0.311 Version       : 1.0.9
0.311 Documentation : http://github.com/devcontainers-contrib/features/tree/main/src/trivy
0.311 Options       :
0.311     VERSION="latest"
0.311 ===========================================================================
1.334 nanolayer
4.028 cd /tmp/tmpt9nirtm1 && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" REPO="aquasecurity/trivy" BINARYNAMES="trivy" VERSION="latest" ASSETREGEX="" RELEASETAGREGEX="" BINLOCATION="/usr/local/bin" LIBNAME="" LIBLOCATION="/usr/local/lib" ADDITIONALFLAGS="" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-gH3paz43lV/nanolayer" bash  -i  +H ./install.sh
4.028 Found a pre-existing nanolayer which were given in env variable: /tmp/nanolayer-gH3paz43lV/nanolayer
4.308 skipping usage of pre-existing nanolayer. (required version v0.5.4 does not match existing version 0.5.4)
5.216 nanolayer
6.571 'bom.json' filtered by '(\.json$|\.sbom$|\.blockmap$)' (negative)
6.571 'trivy_0.53.0_checksums.txt' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.571 'trivy_0.53.0_checksums.txt.pem' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.571 'trivy_0.53.0_checksums.txt.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.573 'trivy_0.53.0_FreeBSD-32bit.tar.gz' filtered by '(32[Bb]it|32\-[Bb]it)' (negative)
6.573 'trivy_0.53.0_FreeBSD-32bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.573 'trivy_0.53.0_FreeBSD-32bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.573 'trivy_0.53.0_FreeBSD-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.574 'trivy_0.53.0_FreeBSD-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.574 'trivy_0.53.0_Linux-32bit.tar.gz' filtered by '(32[Bb]it|32\-[Bb]it)' (negative)
6.575 'trivy_0.53.0_Linux-32bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.575 'trivy_0.53.0_Linux-32bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.575 'trivy_0.53.0_Linux-64bit.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.576 'trivy_0.53.0_Linux-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.deb' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.deb.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.deb.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.rpm' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.rpm.pem' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.rpm.sig' filtered by '(\.deb|\.rpm|\.pkg|\.apk|\.[Aa]ppImage|\.snap)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.576 'trivy_0.53.0_Linux-ARM.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.deb' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.deb.pem' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.deb.sig' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.rpm' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.rpm.pem' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.rpm.sig' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.tar.gz' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.tar.gz.pem' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-ARM64.tar.gz.sig' filtered by '([Aa]rm64|ARM64)' (negative)
6.577 'trivy_0.53.0_Linux-PPC64LE.deb' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.577 'trivy_0.53.0_Linux-PPC64LE.deb.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.deb.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.rpm' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.rpm.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.rpm.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.tar.gz' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.tar.gz.pem' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-PPC64LE.tar.gz.sig' filtered by '(\-ppc|ppc64|PPC64|_ppc)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.deb' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.deb.pem' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.deb.sig' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.rpm' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.rpm.pem' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.rpm.sig' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.tar.gz' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.tar.gz.pem' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_Linux-s390x.tar.gz.sig' filtered by '(s390x|s390)' (negative)
6.578 'trivy_0.53.0_macOS-64bit.tar.gz' filtered by '([Mm]ac[Oo][Ss]|[Mm]ac\-[Oo][Ss]|\-osx\-|_osx_|[Dd]arwin|\.dmg)' (negative)
6.578 'trivy_0.53.0_macOS-64bit.tar.gz.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.578 'trivy_0.53.0_macOS-64bit.tar.gz.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.579 'trivy_0.53.0_macOS-ARM64.tar.gz' filtered by '([Aa]rm64|ARM64)' (negative)
6.579 'trivy_0.53.0_macOS-ARM64.tar.gz.pem' filtered by '([Aa]rm64|ARM64)' (negative)
6.579 'trivy_0.53.0_macOS-ARM64.tar.gz.sig' filtered by '([Aa]rm64|ARM64)' (negative)
6.579 'trivy_0.53.0_windows-64bit.zip' filtered by '(windows|Windows|WINDOWS|win32|\-win\-|\.msi$|.msixbundle$|\.exe$)' (negative)
6.579 'trivy_0.53.0_windows-64bit.zip.pem' filtered by '(\.pub$|\.pem$|\.crt$|\.asc$|pivkey|pkcs11key)' (negative)
6.579 'trivy_0.53.0_windows-64bit.zip.sig' filtered by '(\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256|\.sha1$|\.md5$)' (negative)
6.581 'trivy_0.53.0_FreeBSD-64bit.tar.gz' filtered by '([Aa]md64|\-x64|x64|x86[_-]64)' 
6.581 'trivy_0.53.0_Linux-64bit.tar.gz' filtered by '([Aa]md64|\-x64|x64|x86[_-]64)' 
6.581 'trivy_0.53.0_Linux-ARM.tar.gz' filtered by '([Aa]md64|\-x64|x64|x86[_-]64)' 
6.581 'trivy_0.53.0_FreeBSD-64bit.tar.gz' filtered by '([Ll]inux)' 
6.581 'trivy_0.53.0_Linux-64bit.tar.gz' filtered by '(?i)(debian)' 
6.581 'trivy_0.53.0_Linux-ARM.tar.gz' filtered by '(?i)(debian)' 
6.581 'trivy_0.53.0_Linux-64bit.tar.gz' filtered by '.*static.*' 
6.581 'trivy_0.53.0_Linux-ARM.tar.gz' filtered by '.*static.*' 
6.581 'trivy_0.53.0_Linux-64bit.tar.gz' filtered by '(?i)(debian)' 
6.581 'trivy_0.53.0_Linux-ARM.tar.gz' filtered by '(?i)(debian)' 
6.615 Traceback (most recent call last):
6.616   File "<string>", line 1, in <module>
6.616   File "nanolayer.__main__", line 50, in main
6.616   File "typer.main", line 328, in __call__
6.616   File "typer.main", line 311, in __call__
6.616   File "click.core", line 1157, in __call__
6.616   File "typer.core", line 778, in main
6.616   File "typer.core", line 216, in _main
6.616   File "click.core", line 1688, in invoke
6.616   File "click.core", line 1688, in invoke
6.616   File "click.core", line 1434, in invoke
6.616   File "click.core", line 783, in invoke
6.616   File "typer.main", line 683, in wrapper
6.616   File "nanolayer.cli.install", line 156, in install_gh_release_binary
6.616   File "nanolayer.installers.gh_release.gh_release_installer", line 145, in install
6.616   File "nanolayer.installers.gh_release.resolvers.asset_resolver", line 327, in resolve
6.618 nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.53.0_Linux-64bit.tar.gz', 'trivy_0.53.0_Linux-ARM.tar.gz']
6.745 Traceback (most recent call last):
6.747   File "<string>", line 1, in <module>
6.747   File "nanolayer.__main__", line 50, in main
6.747   File "typer.main", line 328, in __call__
6.747   File "typer.main", line 311, in __call__
6.747   File "click.core", line 1157, in __call__
6.747   File "typer.core", line 778, in main
6.747   File "typer.core", line 216, in _main
6.747   File "click.core", line 1688, in invoke
6.747   File "click.core", line 1688, in invoke
6.747   File "click.core", line 1434, in invoke
6.747   File "click.core", line 783, in invoke
6.747   File "typer.main", line 683, in wrapper
6.747   File "nanolayer.cli.install", line 66, in install_devcontainer_feature
6.747   File "nanolayer.installers.devcontainer_feature.oci_feature_installer", line 134, in install
6.747   File "nanolayer.utils.invoker", line 59, in invoke
6.747 nanolayer.utils.invoker.Invoker.InvokerException: The command 'cd /tmp/tmpt9nirtm1 && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" REPO="aquasecurity/trivy" BINARYNAMES="trivy" VERSION="latest" ASSETREGEX="" RELEASETAGREGEX="" BINLOCATION="/usr/local/bin" LIBNAME="" LIBLOCATION="/usr/local/lib" ADDITIONALFLAGS="" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-gH3paz43lV/nanolayer" bash  -i  +H ./install.sh' failed. error: Return Code: 1. see logs for details.
6.842 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.
------
Dockerfile-with-features:46
--------------------
  45 |     
  46 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=trivy_2,target=/tmp/build-features-src/trivy_2 \
  47 | >>>     cp -ar /tmp/build-features-src/trivy_2 /tmp/dev-container-features \
  48 | >>>  && chmod -R 0755 /tmp/dev-container-features/trivy_2 \
  49 | >>>  && cd /tmp/dev-container-features/trivy_2 \
  50 | >>>  && chmod +x ./devcontainer-features-install.sh \
  51 | >>>  && ./devcontainer-features-install.sh \
  52 | >>>  && rm -rf /tmp/dev-container-features/trivy_2
  53 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/trivy_2 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/trivy_2  && cd /tmp/dev-container-features/trivy_2  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/trivy_2" did not complete successfully: exit code: 1
Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808/Dockerfile-with-features -t registry.opencode.de/ig-bvc/ap-5.11-entwicklungsumgebung/elegua/prebuilt-devcontainer:latest --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /data/home/myuser/projects/igbvc/ap5.11/prebuilt-devcontainer
    at mtA (/home/myuser/.nvm/versions/node/v21.4.0/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:466:1933)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Pm (/home/myuser/.nvm/versions/node/v21.4.0/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:1856)
    at async FrA (/home/myuser/.nvm/versions/node/v21.4.0/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:662:24692)
    at async yrA (/home/myuser/.nvm/versions/node/v21.4.0/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:662:22435)
{"outcome":"error","message":"Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808/Dockerfile-with-features -t registry.opencode.de/ig-bvc/ap-5.11-entwicklungsumgebung/elegua/prebuilt-devcontainer:latest --target dev_containers_target_stage --build-context dev_containers_feature_content_source=/tmp/devcontainercli-myuser/container-features/0.65.0-1720179652808 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /data/home/myuser/projects/igbvc/ap5.11/prebuilt-devcontainer","description":"An error occurred building the image."}
omniproc commented 4 months ago

Same here with "ghcr.io/devcontainers-contrib/features/mage:1": {"version": "1.15.0"}. Root seems to be this

64Bit as name used by those projects not matching the default patterns: https://github.com/devcontainers-contrib/nanolayer/blob/main/nanolayer/installers/gh_release/resolvers/asset_resolver.py#L328 https://github.com/devcontainers-contrib/nanolayer/blob/main/nanolayer/installers/gh_release/resolvers/asset_resolver.py#L18-L29

Arch not being explicitly provided: https://github.com/devcontainers-contrib/features/blob/main/src/gh-release/install.sh#L21-L23 https://github.com/devcontainers-contrib/features/blob/main/src/mage/install.sh#L17-L18

evilhamsterman commented 1 month ago

This project is not associated with the devcontainer project and appears to have been abandoned https://github.com/devcontainers-contrib/features/issues/628 . The official project has removed all devcontainer-contrib features from their listing. https://github.com/devcontainers/devcontainers.github.io/issues/451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features