Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Using "features": { "golang": "1.16" } fails with "no valid OpenPGP data found" #1301

Closed
brianmhunt opened this issue Feb 10, 2022 · 9 comments
Labels
bug Issue identified by VS Code Team member as probable bug go upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@brianmhunt
Copy link

  • VSCode Version: 1.64.1

image

- Reproduces in: Codespaces - Name of Dev Container Definition with Issue: features.golang

Steps to Reproduce:

The fastest reproduction is as follows:

  1. wget https://raw.githubusercontent.com/microsoft/vscode-dev-containers/main/script-library/go-debian.sh
  2. sudo bash ./go-debian.sh "1.16" "/usr/local/go" "/go"

The easiest reproduction is to include "golang": "1.16" in the code.

Both error with:

...
Preparing to unpack .../pkg-config_0.29.1-0ubuntu4_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu4) ...
Setting up libdpkg-perl (1.19.7ubuntu3) ...
Setting up pkg-config (0.29.1-0ubuntu4) ...
Processing triggers for man-db (2.9.1-1) ...
TARGET_GO_VERSION=1.16.14
GO_GPG_KEY_URI=https://dl.google.com/linux/linux_signing_key.pub
Downloading Go 1.16.14...
gpg: no valid OpenPGP data found.
gpg: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.

This occurs with this vanilla devcontainer:

FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04

Removing "golang" from the features section and the container builds correctly. Golang can then be installed in a usual way.

@Chuxel
Copy link
Member

Chuxel commented Feb 10, 2022

Change to 1.16.13 for the version. This looks like the same problem as #1300. There appears to be a rough release getting out for these latest updates.

You may also hit this: #1300 (comment)

@Chuxel Chuxel added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) go labels Feb 10, 2022
@Chuxel
Copy link
Member

Chuxel commented Feb 10, 2022

I just merged in a change into master that should handle the current situation. Keeping this open for a release to publish the updated script for use in dev container features.

//cc @chrmarti @joshspicer

@chrmarti
Copy link
Contributor

Publishing Remote-Containers 0.221.0-pre-release including this fix and the one for #1300. Not sure if we expect this to be fixed upstream soon. Let me know if we need this in a regular release and the CLI for Codespaces too.

@joshspicer
Copy link
Member

As codespaces depends on the pre-packaged scripts right now, would be nice to get a CLI update out @chrmarti

@Chuxel
Copy link
Member

Chuxel commented Feb 11, 2022

@chrmarti @joshspicer We still seem to be seeing the problem with dlv-dap 24 hrs later, so I think it is probably worth doing a release to resolve that issue given the Go extension no longer requires it. 1.17.7 and 1.16.14 are out now, but we got hit with two upstream problems on the same day. 🙁

I noticed an issue with the updated script that I just fixed. So ideally we'd do another rev of the vscode-dev-containers repos and do a release. Agreed.

@brianmhunt
Copy link
Author

Change to 1.16.13 for the version. This looks like the same problem as #1300. There appears to be a rough release getting out for these latest updates.

@Chuxel I'm sure this is known/obvious, but just confirming that using "golang": "1.16.13" yields a different error from the one reported here (i.e. the problem reported in #1300):

[2022-02-11T17:42:45.151Z] #7 116.3 mv: cannot stat '/tmp/gotools/bin/dlv': No such file or directory

Great to see the quick attention to this, thanks to all. I'm curious what the ordinary turnaround time is for this sort of issue, but don't want to pester (or hold anyone to anything). 😁

@Chuxel
Copy link
Member

Chuxel commented Feb 11, 2022

@brianmhunt Yes, that's the second issue I mention with dlv-dap. It also broke yesterday. If you're using the script directly, you can just remove this section per #1300 (comment)

Remove:

go ${go_install_command} -v github.com/go-delve/delve/cmd/dlv@master 2>&1 | tee -a /usr/local/etc/vscode-dev-containers/go.log
mv /tmp/gotools/bin/dlv ${TARGET_GOPATH}/bin/dlv-dap

... or just grab the latest version from script-library/go-debian.sh in this repo.

We're currently working on getting a release out since, despite being an upstream problem, its disruptive. The latest Remote - Containers should have the fix now. @joshspicer is working with the Codespaces team as well to get updates there without disrupting anything.

@brianmhunt
Copy link
Author

brianmhunt commented Feb 16, 2022

I can confirm that this appears to be fixed i.e. codespaces with golang now rebuild as expected.

@Chuxel
Copy link
Member

Chuxel commented Feb 16, 2022

Excellent! Closing.

@Chuxel Chuxel closed this as completed Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug go upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants