-
Notifications
You must be signed in to change notification settings - Fork 92
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
Create an interim updater script for public beta #3859
Comments
We're tracking auto-updates in #1837. You can find an early version of a beta update script for macOS here: https://gist.github.com/jmcphers/ee24cfc5fce0a65afd2902db5173dd2f but note that it requests a PAT which is not necessary any longer since the repository is public. We'll use this issue to track adding an interim beta updater script (auto-updates will probably take a while to sort out). |
I created a new update script for macOS here: To use this, you will want to first download the update script and mark it executable (do this one time): curl https://gist.githubusercontent.com/juliasilge/a74883871e98afe67b01cd9125b104c7/raw/14e447e9fa0aaa858050720f177ed011b059a115/update-positron.sh -o update-positron.sh
chmod u+x update-positron.sh (Optionally, put the script somewhere on your Then you can check for updates, download, and install via: ./update-positron.sh I'll see if I can update the old Windows script we had (or convince Christophe to do it for me), and then get this into the wiki. |
Thanks for providing the update script The problem with the two version of the script is that it does not compare versions (latest vs currently installed) so if I run it with the latest version already. It will still download and install the latest from GitHub release. It is hard though to actually check versions because inside |
Yep @MohamedElashri, but we probably will not make further improvements to this method of installation and instead focus on #1837. |
Here are Windows options for getting latest version easily, and stay up to date with releases Scoop Package ManagerScoop have central buckets of manifest but also decentralized version. Positron is now available in this specific bucket (maintained by me) : https://github.com/cderv/r-bucket#positron # Add bucket (only need to do this once)
scoop bucket add r-bucket https://github.com/cderv/r-bucket.git
# install
scoop install positron
# update
scoop update positron Once Positron will have more stable release, I'll probably do two manifest to have a
and the other one moving less often Winget Package Managerhttps://learn.microsoft.com/en-us/windows/package-manager/
This is community maintained, with automated PR to the central manifest repository: https://github.com/microsoft/winget-pkgs/tree/master/manifests/p/Posit/Positron ChocolateyNot available yet. We have it for Quarto and TinyTeX so if this is of interest @juliasilge I can help set this up. I will be better when there will be more stable version - Monthly release seems a good pace for it. |
Thank you SO MUCH @cderv! We will wait on further updates for when we move to monthly prereleases. I added this info to the wiki here: https://github.com/posit-dev/positron/wiki/Updating-Positron |
Verified that the OSX script from Julia works. Will ask @jonvanausdeln to look at Windows. |
I have issues with both the Windows methods: Scoop
*note - I did try again as suggested
I assume this is because it wasn't originally installed with scoop Winget
I'm guessing it is perhaps only checking the major/minor versions when deciding what is upgrade worthy? My biggest concern is that the we haven't really spec'd out what is the right upgrade paths, etc. And all these disparate methods have different results, which could be very confusing to users. |
Hmmmm, I agree that this will be confusing @jonvanausdeln. What would you suggest as a good next step? Some questions include:
We don't want to spend a ton of energy on these temporary options since #1837 is the real feature here. |
Let me try to add more context to all this as a regular windows user.
Issue will scoop will be dealt with. I'll fix that, and maybe we really need to wait for I tried a first working version the other day, and I'll see if I can fix it with current behavior. Maybe the bundle have changed somehow.
Scoop can manage only version it has installed. You can't use the tool to update another externally installed version. That is not how it works. Scoop does user-own installation by default in its own folder structure.
Regarding winget, the update to manifest for 2024.07.0-81 was merged only 3 hours ago. (microsoft/winget-pkgs#163808). I don't know how winget gets its update from central repo, but the installation you tried was just happening right after they merged. Maybe there is a cache mechanism or something. Or just a schedule workflow to sync up the github repo with manifest to a central repo in different servers. I don't know. When I tried on my end right now, I get the correct version. This is just a bad timing problem IMO. In all case, they will be delay between Github release on this repo, and published version on those package manager repo.
Those are community contributed solution to package managers. The winget one, and the scoop one will still exists.
You can undocument them if you want, but in my opinion there has no real issue.
Powershell script is not really best option IMO. It seems more artisanal to me than those existing solutions. I can still provide it, but installing a powershell module is quite advances, and those script currently don't check version. The version I had was very basic to install version on top of existing always. Not that efficient. |
FWIW I opened cderv/r-bucket#29 to discuss it, but for now, no problem on my end. Not reproducible for me - this means both methods are working correctly for me (on windows hardware machine on Windows 11). I don't think they should be removed from the doc, but you can say they are community maintained and issue should be reported in the corresponding repo. |
@jonvanausdeln do you mind trying again for the scoop and winget installation methods? |
Sure! I just tried both again and get the exact same results. I also uploaded the log for scoop in cderv/r-bucket#29 |
My winget cache must have updated.. a clean install now gets the latest -81 build |
I looked to understand this cache thing for winget, and FYI the source are
and there is a For scoop, let's discuss in the other issue. Though, I did not have any other report. @juliasilge I am using Scoop myself for positron update and it is working fine ! |
I'm fine closing this issue, and adding to any documentation we have suggesting these methods for updating that they are not maintained by Posit and your results may vary. |
Sounds good! I updated the language at https://github.com/posit-dev/positron/wiki/Updating-Positron#windows 🙌 |
With Betas now being built by a CRON job, the open beta participants are likely to be on outdated versions more quickly.
Would it be possible to either:
Though this will likely get better in the next few days when conda-forge and chocolatey gain recipes for positron. (Brew just got one about a day or two back.)
The text was updated successfully, but these errors were encountered: