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

Quote packages so shells don't get unhappy #561

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

betatim
Copy link
Member

@betatim betatim commented Nov 13, 2024

This attempts to fix #560

This moves the quoting to the end of getpipCmdHtml and always applies it. Previously only the nightly version got quoted. but it required a leading " in each package name and a closing " in the CUDA suffix.

I clicked through a few combinations of things for the pip option. As far as I can tell it works for all of them

Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Nov 13, 2024 3:00pm

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for docs-rapids-ai ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit fd1dd61
🔍 Latest deploy log https://app.netlify.com/sites/docs-rapids-ai/deploys/6734beea9ac73b000863f145
😎 Deploy Preview https://deploy-preview-561--docs-rapids-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@betatim betatim marked this pull request as ready for review November 13, 2024 15:18
@betatim betatim requested a review from a team as a code owner November 13, 2024 15:18
@betatim betatim changed the title DRAFT Quote packages so shells don't get unhappy Quote packages so shells don't get unhappy Nov 13, 2024
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small question.

if (pkg === "raft") return ["pylibraft" + cuda_suffix, "raft-dask" + cuda_suffix];
if (pkg === "cuvs") return ["cuvs" + cuda_suffix, "pylibraft" + cuda_suffix];
if (pkg === "cugraph/nx-cugraph") return ["cugraph" + cuda_suffix, "nx-cugraph" + cuda_suffix];
return ["" + pkg + cuda_suffix];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this empty string needed?

Suggested change
return ["" + pkg + cuda_suffix];
return [pkg + cuda_suffix];

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

Successfully merging this pull request may close these issues.

[BUG] Install command with * in it leads to shell error on zsh
2 participants