export-login is too big for env variable
Bug #1858023 reported by
Anatoli Babenia
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to encrypt macaron for Travis SNAP_TOKEN fails, because data is too large.
Changed in snapcraft: | |
assignee: | nobody → Chris Patterson (cjp256) |
Changed in snapcraft: | |
assignee: | Chris Patterson (cjp256) → nobody |
To post a comment you must log in.
Can you share the steps you took to generate/set SNAP_TOKEN?
Is the variable encoded as base64? (Does it have plaintext in it, e.g. "login.ubuntu.com", "macaroon"?)
The steps I take are available at https:/ /docs.travis- ci.com/ user/deployment /snaps/:
$ snapcraft export-login --snaps my-snap-name --channels edge -
...where the sending the data to stdout via `-` argument is crucial. Then I copy the output base64 encoded string and use it with:
$ travis env set SNAP_TOKEN "<token>"
If that doesn't help, mind sharing the number of characters in your token?
$ echo "<token>" | wc -c