dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
680 stars 64 forks source link

Choosenim init script attempting pulling wrong version #345

Closed thatrandomperson5 closed 3 months ago

thatrandomperson5 commented 3 months ago

Setup

OS: Ubuntu/Linux (Nix Shell)

Issue:

As of now, a request to https://nim-lang.org/choosenim/stable gives version 0.8.5, which does not exist. [1] This causes the init script to attempt to get version v0.8.5 from GitHub and stops with a 404 error, resulting in nothing being installed. [2]

TL;DR: Either the setup script need to be patched to avoid using the nim-lang.org link, the link needs to be fixed or 0.8.5 needs to be released.

Note to future people: This issue will most likely be fixed with time when 0.8.5 is released. Feel free to close this or remind me to close it when the time comes.

Workaround:

Download the init script then replace the below before you run it.

local stable_version=
  if has_curl; then
    stable_version=`curl -sSfL https://nim-lang.org/choosenim/stable`
  elif has_wget; then
    stable_version=`wget -qO - https://nim-lang.org/choosenim/stable`
  fi

With

local stable_version="0.8.4"
SpotlightKid commented 3 months ago

You need to get choosenim from https://github.com/nim-lang/choosenim now.

thatrandomperson5 commented 3 months ago

You need to get choosenim from https://github.com/nim-lang/choosenim now.

Ah, thank you. I was wondering why this hasn’t been updated in a few years and apparently it was migrated to another repository.

thatrandomperson5 commented 3 months ago

New version works