File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 33set -euo pipefail
44
55install_code_server () {
6- local LATEST_DOWNLOAD_URL=$(
7- curl --silent " https://api.github.com/repos/coder/code-server/releases/latest" | # Get latest release from GitHub api
8- grep " \" browser_download_url\" : \" https.*\/code-server-.*-amd64.rpm" | # Get download url
9- sed -E ' s/.*"([^"]+)".*/\1/' # Pluck JSON value
10- )
6+ # local LATEST_DOWNLOAD_URL=$(
7+ # curl --silent "https://api.github.com/repos/coder/code-server/releases/latest" | # Get latest release from GitHub api
8+ # grep "\"browser_download_url\": \"https.*\/code-server-.*-amd64.rpm" | # Get download url
9+ # sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
10+ # )
11+ #
12+ # local RPM=${LATEST_DOWNLOAD_URL##*/}
13+
14+ # Pin to latest known version that can still work on alinux2 (glibc-2.26)
15+ local VERSION=4.16.1
16+ local LATEST_DOWNLOAD_URL=" https://github.com/coder/code-server/releases/download/v${VERSION} /code-server-${VERSION} -amd64.rpm"
17+ local RPM=" code-server_${VERSION} _amd64.rpm"
1118
12- local RPM=${LATEST_DOWNLOAD_URL##*/ }
1319 aria2c -x10 --dir /tmp -o ${RPM} ${LATEST_DOWNLOAD_URL}
1420 sudo yum localinstall -y /tmp/$RPM && rm /tmp/$RPM
1521 [[ -d ~ /.cache/code-server/ ]] && rm -fr ~ /.cache/code-server/
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ declare -a PKGS=(
7979 jupyterlab-execute-time
8080 jupyterlab-skip-traceback
8181 jupyterlab-unfold
82- stickyland
8382
8483 # jupyterlab_code_formatter requires formatters in its venv.
8584 # See: https://github.com/ryantam626/jupyterlab_code_formatter/issues/153
@@ -99,7 +98,6 @@ declare -a PKGS=(
9998 jupyterlab-execute-time
10099 jupyterlab-skip-traceback
101100 jupyterlab-unfold
102- stickyland
103101 ipython_genutils # https://github.com/jupyter/nbdime/issues/621
104102
105103 # jupyterlab_code_formatter requires formatters in its venv.
You can’t perform that action at this time.
0 commit comments