stefanprodan / timoni

Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm.
https://timoni.sh
Apache License 2.0
1.54k stars 68 forks source link

`init` commands returns weird error about fetching a file from github #289

Open piontec opened 9 months ago

piontec commented 9 months ago

I was expecting this to work, but it fails:

/tmp ➜  timoni version         
api: timoni.sh/v1alpha1
client: 0.17.0
cue: 0.6.0
/tmp ➜  timoni mod init myapp .
4:12PM ERR pulling artifact manifest failed: GET https://ghcr.io/token?scope=repository%3Astefanprodan%2Ftimoni%2Fminimal%3Apull&service=ghcr.io: DENIED: denied
stefanprodan commented 9 months ago

Your GHCR token has expired. Update it or run docker logout ghcr.io

piontec commented 9 months ago

Thanks, that was it, but I didn't get it from the original error message. Maybe there's a way to make it a bit more verbose?

stefanprodan commented 9 months ago

This is the standard message retuned by the OCI API, we could have some regex for DENIED in the error message and append some hint to it. Docker CLI will show the same error.