Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@base64d of empty string fails with 'Error: EOF' #1209

Closed
ksa-real opened this issue May 10, 2022 · 2 comments
Closed

@base64d of empty string fails with 'Error: EOF' #1209

ksa-real opened this issue May 10, 2022 · 2 comments
Labels
Milestone

Comments

@ksa-real
Copy link

ksa-real commented May 10, 2022

Describe the bug
See title

Version of yq: 4.25.1
Operating system: mac
Installed via: homebrew

Command
The command you ran:

echo "a: "| yq '.a|@base64d'

or just

printf ''|yq '@base64d'

Actual behavior

Error: EOF

Expected behavior

empty string

Additional context
An empty string is a correct base64 representation of an empty string and reverse.

@ksa-real ksa-real changed the title @base64d of empty string fails with 'Error: EOF @base64d of empty string fails with 'Error: EOF' May 10, 2022
@mikefarah
Copy link
Owner

Thanks for raising, will fix in the next release

@mikefarah mikefarah added this to the 4.26.1 milestone May 27, 2022
@mikefarah
Copy link
Owner

Fixed in 4.25.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants