tony-o / raku-fez

This project is for 'fez', raku's cool new shiny dist uploader & manager. If you're a module author you should definitely be using this sweet thang. ;;;;;;;;;;;;;; This project and the underlying infrastructure is supported out of my own pocket and through donations. If you'd like to donate please check here: https://www.patreon.com/oynot
Artistic License 2.0
20 stars 12 forks source link

fez upload fails - Unable to prompt while --unattended is in use #102

Closed melezhik closed 1 year ago

melezhik commented 1 year ago

Hi @tony-o this is what I get when I try to upload my module via SparrowCI

07:31:35 :: debconf: delaying package configuration, since apt-utils is not installed 07:31:35 :: ===> Updating fez mirror: https://360.zef.pm/ 07:31:35 :: ===> Updated fez mirror: https://360.zef.pm/ 07:31:35 :: =<< FATAL: Unable to prompt while --unattended is in use 07:31:35 :: task exit status: 1 07:31:35 :: task tasks/release FAILED

Full log here - https://ci.sparrowhub.io/report/3392

tony-o commented 1 year ago

@melezhik this is likely because you're not logged in or the key is expired

melezhik commented 1 year ago

Hi @tony-o , yes the issue was that token was empty. it'd ve been awesome to say in stderr something like - "run in unattended mode, but token does not exist" or something ...

tony-o commented 1 year ago

Hi @tony-o , yes the issue was that token was empty. it'd ve been awesome to say in stderr something like - "run in unattended mode, but token does not exist" or something ...

the error comes from the prompter which would need to be aware of its context. i'll add something that logs what the prompt would've been in the next release

tony-o commented 1 year ago

this is going to be released with v55

tony-o commented 1 year ago

released -