Error: Invalid value for '--experimental-login'

I’m trying to login to snapcraft via a GitHub Action to automatically deploy my snap. When I try to do this via snapcraft login --with <(echo "$SNAPCRAFT_LOGIN") I get the following error:

Error: Invalid value for '--experimental-login'
is not a valid boolean
Error: Process completed with exit code 2.

I was able to do this previously without any issues, but when I bump my CI environment from Ubuntu 18.04 to Ubuntu 20.04 I’m getting this issue, possibly because the new 4.6 release: Call for testing: Snapcraft 4.6

There are more details specific to my project here:

Other people seem to be experiencing this as well:

I think this is a bug, so I opened up a ticket here as well: If it turns out I’m doing something wrong, I’ll follow up there. Thank you!

Here’s a fix

1 Like