suborbital / subo

The Suborbital CLI
Apache License 2.0
81 stars 25 forks source link

Subo should not check for updates when running inside of a Docker container #242

Closed danielledeleo closed 2 years ago

danielledeleo commented 2 years ago

It appears that the root certs in our Docker images are outdated, producing this error:

ℹ️  failed to getLatestVersion: failed to fetch latest subo release: Get "https://api.github.com/repos/suborbital/subo/releases/latest": x509: certificate signed by unknown authority

Subo doesn't need to check for updates within Docker anyway, so there should be a build flag or runtime flag to disable that feature.

kritikmodi commented 2 years ago

So if the user runs subo with Docker, latest version shouldn't be checked? It should be checked only if they run subo with the --native flag?