Skip to content

Getting Started with Swiftly on Linux gpg import issue #1328

@igorkovalchuk

Description

@igorkovalchuk

https://www.swift.org/keys/all-keys.asc gpg import doesn't work as expected

Steps to reproduce the behavior:

  1. Go to https://www.swift.org/install/linux/swiftly/
  2. curl https://www.swift.org/keys/all-keys.asc | gpg --import -
  3. Error

Expected behavior

gpg imports keys from all-keys.asc file

Actual behavior

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

Environment details

  • OS: Debian 12

Additional context

curl downloads the gzipped all-keys.asc file, but gpg doesn't expect this;
it is possible to see this using the hexdump Linux utility.

Renaming the file to .gz and using gunzip all-keys.asc.gz fixes this.
Today the gzipped asc file length is 12782 bytes, decompressed is 21975 bytes.

Seems that using curl --compressed ... also helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions