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

Bug #1922815 reported by Jim Fisk
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Undecided
Unassigned

Bug Description

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.
```

This is detailed here: https://github.com/plentico/plenti/issues/151#issuecomment-814458432

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: https://forum.snapcraft.io/t/call-for-testing-snapcraft-4-6/23549

Other people seem to be experiencing this as well: https://twitter.com/dosco/status/1378055663792705536

Revision history for this message
Jim Fisk (jimafisk) wrote :

This has been fixed in https://github.com/snapcore/snapcraft/pull/3493

That should be pulled in soon, but in the meantime you can rename your environment variable from SNAPCRAFT_LOGIN to something else to avoid naming conflicts and it should work. Thanks!

Changed in snapcraft:
status: New → Fix Committed
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

In 4.6.1

Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.