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

Error! unknown or unexpected option: --no-clipboard #57

Closed
simonw opened this issue Jul 13, 2022 · 4 comments
Closed

Error! unknown or unexpected option: --no-clipboard #57

simonw opened this issue Jul 13, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Owner

simonw commented Jul 13, 2022

Just got this error in this workflow run: https://github.com/simonw/til/runs/7323766014

The CI run didn't fail, which is also a bug I should fix - it looks like datasette publish vercel is returning a 0 exit code even if something goes wrong when it shells out to the vercel CLI command.

@simonw simonw added the bug Something isn't working label Jul 13, 2022
@simonw
Copy link
Owner Author

simonw commented Jul 13, 2022

Relevant code:

cmd = ["vercel", "--confirm", "--no-clipboard"]

@simonw
Copy link
Owner Author

simonw commented Jul 13, 2022

The --no-clipboard option was removed here:

simonw added a commit that referenced this issue Jul 13, 2022
@simonw
Copy link
Owner Author

simonw commented Jul 13, 2022

To test locally I first had to update the vercel CLI:

npm i -g vercel

@simonw
Copy link
Owner Author

simonw commented Jul 13, 2022

I tested my change that reflects errors from vercel and got this output - good enough:

% datasette publish vercel fixtures.db --project blah
Vercel CLI 27.1.0
Error! unknown or unexpected option: --no-clipboard
Error: Command '['vercel', '--confirm', '--no-clipboard', '--prod', '--env', 'DATASETTE_SECRET=...']' returned non-zero exit status 1.

@simonw simonw closed this as completed in eb7d679 Jul 13, 2022
simonw added a commit that referenced this issue Jul 13, 2022
simonw added a commit that referenced this issue Jul 13, 2022
simonw added a commit to simonw/til that referenced this issue Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant