LilithHafner / UpdateJulia.jl

Simple cross platform Julia installer
GNU General Public License v3.0
59 stars 3 forks source link

Stable 1.7 does not install #6

Closed roflmaostc closed 2 years ago

roflmaostc commented 2 years ago

Hi!

1.7 does not install yet. I only need this package once the new version is released and then I usually want it rather quickly.

julia> update_julia("1.7")
installing julia 1.7.0-rc3 from https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.0-rc3-linux-x86_64.tar.gz
This version is un-released. The latest official release is 1.6.4

Any idea how to fix? It's listed here already.

Best, Felix

LilithHafner commented 2 years ago

Thank you for reporting this!

LilithHafner commented 2 years ago

I'm having trouble reproducing this locally. It seems to work for me when I:

(@v1.6) pkg> activate --temp
  Activating new environment at `/var/folders/hc/fn82kz1j5vl8w7lwd4l079y80000gn/T/jl_dteUvi/Project.toml`
add https://github.com/LilithHafner/UpdateJulia.jl.git
     Cloning git-repo `https://github.com/LilithHafner/UpdateJulia.jl.git`
    Updating git-repo `https://github.com/LilithHafner/UpdateJulia.jl.git`
   Resolving package versions...
    Updating `/private/var/folders/hc/fn82kz1j5vl8w7lwd4l079y80000gn/T/jl_dteUvi/Project.toml`
  [770da0de] + UpdateJulia v0.1.0 `https://github.com/LilithHafner/UpdateJulia.jl.git#main`
    Updating `/private/var/folders/hc/fn82kz1j5vl8w7lwd4l079y80000gn/T/jl_dteUvi/Manifest.toml`
  [682c06a0] + JSON v0.21.2
  [69de0a69] + Parsers v2.1.2
  [fd094767] + Suppressor v0.2.0
  [770da0de] + UpdateJulia v0.1.0 `https://github.com/LilithHafner/UpdateJulia.jl.git#main`
  [ade2ca70] + Dates
  [a63ad114] + Mmap
  [de0858da] + Printf
  [4ec0a83e] + Unicode
Precompiling project...
  1 dependency successfully precompiled in 3 seconds (3 already precompiled)
julia> using UpdateJulia
julia> update_julia("1.7")
installing the latest version of julia (1.7.0) from https://julialang-s3.julialang.org/bin/mac/x64/1.7/julia-1.7.0-mac64.dmg
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified   CRC32 $DB18E963
Checksumming GPT Header (Primary GPT Header : 1)…
 GPT Header (Primary GPT Header : 1): verified   CRC32 $32B2CD2E
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified   CRC32 $5CC90DF8
Checksumming  (Apple_Free : 3)…
                    (Apple_Free : 3): verified   CRC32 $00000000
Checksumming EFI System Partition (C12A7328-F81F-11D2-BA4B-00A0C93EC93B : 4)…
EFI System Partition (C12A7328-F81F-: verified   CRC32 $B54B659C
Checksumming disk image (Apple_HFS : 5)…
...............................................................................
          disk image (Apple_HFS : 5): verified   CRC32 $A64EE7FC
Checksumming  (Apple_Free : 6)…
                    (Apple_Free : 6): verified   CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 7)…
GPT Partition Data (Backup GPT Table: verified   CRC32 $5CC90DF8
Checksumming GPT Header (Backup GPT Header : 8)…
  GPT Header (Backup GPT Header : 8): verified   CRC32 $73301D7C
verified   CRC32 $EC4B29C1
/dev/disk2              GUID_partition_scheme           
/dev/disk2s1            EFI                             
/dev/disk2s2            Apple_HFS                       /Volumes/Julia-1.7.0
"disk2" ejected.
Success! `julia-1.7.0` & `julia-1.7` & `julia` now to point to 1.7.0
v"1.7.0"
roflmaostc commented 2 years ago

Maybe it was an artifact due to some Latency in updating all relevant pages. I freshly installed it the first time without having it before.

I report back whether it works in 1.7.1 😜

LilithHafner commented 2 years ago

Perhaps there is an issue with caching the version list. Right now, if the version list has been downloaded in the last hour, it is not redownloaded. Perhaps I should remove this "feature"/bug. If this is the issue, restarting Julia should fix it for you.

roflmaostc commented 2 years ago

Oh, I just edited my reply.

I did install it exactly as you and did that for the first time. So I can probably exclude that effect.

LilithHafner commented 2 years ago

That is unfortunate. So is there no way it was using a locally cached version list?

EDIT: say your edit, unless I'm misreading the situation you have indicated the answer is no, there is no way, which leaves the problem either in this package or page update latency.

LilithHafner commented 2 years ago

Theoretically, it could also be a page update latency, because this package uses https://julialang-s3.julialang.org/bin/versions.json which is linked at the bottom of https://julialang.org/downloads/, and advertised as updated "once every 24 hours" but is, as of this moment, up to date.

roflmaostc commented 2 years ago

Is it added by your package?

If yes, then there should not have been a list present before.

roflmaostc commented 2 years ago

Hm, it seems to work now on my machine

julia                                              [30-11-21 | 10:17:11]
At startup Revise.jl and OhMyREPL.jl loaded               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.0 (2021-11-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.7) pkg> activate --temp
  Activating new project at `/tmp/jl_ISBECG`

(jl_ISBECG) pkg> add https://github.com/LilithHafner/UpdateJulia.jl.git
    Updating git-repo `https://github.com/LilithHafner/UpdateJulia.jl.git`
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
    Updating `/tmp/jl_ISBECG/Project.toml`
  [770da0de] + UpdateJulia v0.1.0 `https://github.com/LilithHafner/UpdateJulia.jl.git#main`
    Updating `/tmp/jl_ISBECG/Manifest.toml`
  [682c06a0] + JSON v0.21.2
  [69de0a69] + Parsers v2.1.2
  [fd094767] + Suppressor v0.2.0
  [770da0de] + UpdateJulia v0.1.0 `https://github.com/LilithHafner/UpdateJulia.jl.git#main`
  [ade2ca70] + Dates
  [a63ad114] + Mmap
  [de0858da] + Printf
  [4ec0a83e] + Unicode
Precompiling project...
  2 dependencies successfully precompiled in 1 seconds (2 already precompiled)

julia> using UpdateJulia

julia> update_julia("1.7")
installing the latest version of julia (1.7.0) from https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.0-linux-x86_64.tar.gz
LilithHafner commented 2 years ago

Yes, the version list is downloaded by the package and stored in ram as UpdateJulia.versions.

roflmaostc commented 2 years ago

Ah btw. Julia should be started with root privileges, right? Maybe you can add a comment regarding that in the README?

LilithHafner commented 2 years ago

That should not be necessary. Were you getting an error with non-root?

roflmaostc commented 2 years ago

During installation it cannot create a needed folder/file. I try that tomorrow again and open another issue if it's not working. Thanks for your quick support!

LilithHafner commented 2 years ago

Thank you for reporting!