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

Multiple fixes for the CLI #5328

Merged
merged 3 commits into from
Feb 24, 2021
Merged

Conversation

LabhanshAgrawal
Copy link
Collaborator

Currently we don't allow the use of Tools>Add Hyper CLI to PATH option on linux, this pr enables that.
Using sudo-prompt we can create the symlink for the cli if /usr/local/bin is owned by root (generally the case in linux)

When using AppImage, it's run from a temporary squashfs mount point, we can't create the symlink for this path as it'll change on next run. Instead, I've added injection of cli path in that case.

Sometimes /usr/local/bin might not exist, I've added creation of that dir if it doesn't exist.

Fixes #4750
Fixes #5307
Fixes #2829
Fixes #2849

Most of the problems with cli not being installed should be fixed with this
users might need to use the Add Hyper CLI to PATH option if it's not installed by default

@Stanzilla Stanzilla merged commit 812ca44 into vercel:canary Feb 24, 2021
@LabhanshAgrawal LabhanshAgrawal deleted the cli_install branch February 24, 2021 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants