-
Notifications
You must be signed in to change notification settings - Fork 89
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
Trigger macOS gatekeeper check on install #1006
Conversation
This didn't seem to improve initial load time and Pkg repl switch time on nightly. |
Is there a way to know for sure this ran and didn't error? |
You can comment the three lines that redirect the various pipes and then add something like |
Ah, wait! This won't run on nightly, I think. Can you try with the rc channel? But make sure that 1.11-rc2 is also not installed via some other channel. |
Will try shortly. Coincidentally this was just published https://9to5mac.com/2024/08/11/apple-hasnt-yet-fulfilled-this-macos-promise-from-4-years-ago/ |
Just uninstalled and reinstalled 1.11, on a slower internet connection, and I still hit 20s first julia startup and ~30s Pkg repl load. Maybe the background process was still loading. As a user I just went to get on with using julia.. I am fast coming to the conclusion that on MacOS we should be shipping the notarized Look how painful this is. Note that after Screen.Recording.2024-08-12.at.1.20.42.PM.mov |
One more thing we could try: wait for the background process to finish during the install. That will add time to the install, but it is a very easy change and maybe worth trying? I'm not in general opposed to shipping dmg, I'm just a bit worried about timelines for such a big change, I think ideally we would find some simpler fix for 1.11 and then we can still revisit. |
That sounds like a decent fix for now. I'd recommend that it prints a message to explain the delay though, as 1 minute, the worst I've seen, is quite a long time. |
@IanButterworth can you try this version of the PR? When I run this on Windows, the whole loading takes very little time, I'd say less than 5 seconds. |
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
This was on slow airport wifi. The notarization part took 12s. Also there was a ~10s delay after download before the first notarization message showed.
|
Ah, the prints are being done by julia.. that's why there's a 10s delay before the first, because gatekeeper is checking julia itself first. Can the prints be done in rust?
|
@IanButterworth can you try again? I changed the output a bit. Also added a dot print per stdlib to show progress. |
Looks good. Took 20s
I think it will make people ask what it is.. but in the mean time I can try help switch over to the |
Fixes #999.
@IanButterworth I don't even have a Mac to test this, can you give this a try?