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

Issues with "yq" on WSL2 #163

Closed
4 tasks done
fiseni opened this issue Oct 31, 2020 · 2 comments
Closed
4 tasks done

Issues with "yq" on WSL2 #163

fiseni opened this issue Oct 31, 2020 · 2 comments

Comments

@fiseni
Copy link

fiseni commented Oct 31, 2020

Checklist

  • I have read the tutorials and know the correct effect of the functional design.
  • There are no similar question on existing issues (including closed ones).
  • I searched the Internet for related problems, but still couldn't solve it.
  • My question is based on the latest code of master branch.

Description

If you're using WSL2 (Ubuntu) on Windows, then installing yq is not quite straightforward. It's installed through snap, and snap can't be installed on WSL2 due to the systemd dependency.
There are hacks, please refer to this github issue, but none of them are persistent solutions.

Any chance we can use some yq alternative in create_pages.sh script?

@cotes2020
Copy link
Owner

Try this:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y

See: https://github.com/mikefarah/yq#on-ubuntu-1604-or-higher-from-debian-package

@fiseni
Copy link
Author

fiseni commented Oct 31, 2020

Great, installed successfully from the external apt-repository.

Thanks!

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

No branches or pull requests

2 participants