microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.41k forks source link

Github CLI feature fails to install #1615

Closed exil0867 closed 2 years ago

exil0867 commented 2 years ago

Steps to Reproduce:

  1. Add the following to devcontainer.json
    "features": {
    "github-cli": "latest"
    }
  2. Build the image

Github CLI should get installed without any issues but i get this error instead:

> [dev_containers_target_stage 2/2] RUN cd /tmp/build-features/github-cli_1 && chmod +x ./install.sh && ./install.sh:
#0 2.662 (*) Script: github-debian.sh latest
#0 2.692 Downloading github CLI...
#0 13.38 GITHUB_CLI_ARCHIVE_GPG_KEY=C99B11DEB97541F0
#0 13.39 GPG_KEY_SERVERS=keyserver hkp://keyserver.ubuntu.com:80
#0 13.39 keyserver hkps://keys.openpgp.org
#0 13.39 keyserver hkp://keyserver.pgp.com
#0 13.40 (*) Downloading GPG key...
#0 39.24 Hit:1 http://deb.debian.org/debian bullseye InRelease
#0 39.24 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
#0 39.30 Get:3 https://cli.github.com/packages stable InRelease [3743 B]
#0 39.34 Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
[2022-09-04T09:19:14.142Z] 
#0 39.52 Err:3 https://cli.github.com/packages stable InRelease
#0 39.52   The following signatures were invalid: EXPKEYSIG C99B11DEB97541F0 Nate Smith <vilmibm@github.com>
#0 39.62 Reading package lists...
#0 40.10 W: GPG error: https://cli.github.com/packages stable InRelease: The following signatures were invalid: EXPKEYSIG C99B11DEB97541F0 Nate Smith <vilmibm@github.com>
#0 40.10 E: The repository 'https://cli.github.com/packages stable InRelease' is not signed.
------
[2022-09-04T09:19:14.144Z] error: failed to solve: executor failed running [/bin/sh -c cd /tmp/build-features/github-cli_1 && chmod +x ./install.sh && ./install.sh]: exit code: 100
[2022-09-04T09:19:14.186Z] Stop (47564 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/vsch-test/container-features/0.245.2-1662283106556/Dockerfile-with-features -t vsc-test-test-75912149ef8fe1a3e1cd559be1acd5a6 --target dev_containers_target_stage --no-cache --pull --build-arg VARIANT=bullseye --build-context dev_containers_feature_content_source=/tmp/vsch-test/container-features/0.245.2-1662283106556 --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 /home/test/test-test/.devcontainer
[2022-09-04T09:19:14.187Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/vsch-test/container-features/0.245.2-1662283106556/Dockerfile-with-features -t vsc-test-test-75912149ef8fe1a3e1cd559be1acd5a6 --target dev_containers_target_stage --no-cache --pull --build-arg VARIANT=bullseye --build-context dev_containers_feature_content_source=/tmp/vsch-test/container-features/0.245.2-1662283106556 --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 /home/test/test-test/.devcontainer
JamesHutchisonCarta commented 1 year ago

I'm still seeing this issue. Why was it closed?