Skip to content

GITHUB_TOKEN environment variable causes panics with "Could not automatically determine the process-level CryptoProvider from Rustls crate features" #2024

@haines

Description

@haines

When the GITHUB_TOKEN environment variable is set, Lychee panics.

$ docker run --env GITHUB_TOKEN=abc --pull always lycheeverse/lychee:latest-alpine https://example.com
latest-alpine: Pulling from lycheeverse/lychee
Digest: sha256:04252bc5d545b726d6417e46942c817045ff14cef7a5e6d9b06d5750beb2d620
Status: Image is up to date for lycheeverse/lychee:latest-alpine

thread 'main' (1) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.23.36/src/crypto/mod.rs:249:14:

Could not automatically determine the process-level CryptoProvider from Rustls crate features.
Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled.
See the documentation of the CryptoProvider type for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions