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

Import sudo-prompt module into our repo #7398

Merged
merged 5 commits into from
Aug 31, 2024

Conversation

jandubois
Copy link
Member

@jandubois jandubois commented Aug 30, 2024

The upstream repo has been archived in 2021 and no longer accepts PRs.

This import is in preparation to update the bundled AppleScript applet to include aarch64 support (#7336), so it no longer requires Rosetta on M1+ machines.

@jandubois jandubois requested a review from mook-as August 30, 2024 19:25
The upstream repo has been archived in 2021 and no longer accepts PRs.

This import is in preparation to update the bundled AppleScript applet
to include aarch64 support, so it no longer requires Rosetta on M1+ machines.

Signed-off-by: Jan Dubois <[email protected]>
Signed-off-by: Jan Dubois <[email protected]>
@jandubois jandubois changed the title Vendor sudo-prompt module into our repo Import sudo-prompt module into our repo Aug 30, 2024
@jandubois jandubois force-pushed the vendor-sudo-prompt branch 2 times, most recently from ac510b0 to e4e8848 Compare August 30, 2024 22:21
@jandubois
Copy link
Member Author

Sorry for asking prematurely to review this PR, but I think it is now ready.

test.js has been disabled by renaming it to test-orig.js. The test wasn't performed before because yarn install doesn't run it, and I don't see how it could work in CI given that it displays a prompt and waits for user input.

Copy link
Contributor

@mook-as mook-as left a comment

Choose a reason for hiding this comment

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

Happy to see that linter fixes were in separate commits, so we have a view of what the upstream code looked like.

It would have been nice to import the upstream repo with commits (like we did for the src/go/ merge), instead of as a snapshot, but I'm not sure you feel like doing the work…

(Requesting just the jest ignore bit; everything is acceptable.)

pkg/rancher-desktop/sudo-prompt/test-orig.js Outdated Show resolved Hide resolved
@mook-as mook-as merged commit a585730 into rancher-sandbox:main Aug 31, 2024
17 checks passed
@jandubois jandubois deleted the vendor-sudo-prompt branch August 31, 2024 00:34
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.

2 participants