From 6e04ee7d0d798fa834f86251d1e1f1f0990bb5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Fri, 7 Jan 2022 00:03:53 +0100 Subject: [PATCH 1/5] Update previous Crystal release - 1.3.0 --- .circleci/config.yml | 2 +- .github/workflows/linux.yml | 2 +- .github/workflows/openssl.yml | 8 ++++---- .github/workflows/win.yml | 2 +- bin/ci | 6 +++--- shell.nix | 8 ++++---- src/VERSION | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 33865f9c8295..1c19258b8801 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -134,7 +134,7 @@ jobs: echo "export CRYSTAL_SHA1=$CIRCLE_SHA1" >> build.env # Which previous version use - export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.2.2/crystal-1.2.2-1" + export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1" echo "export PREVIOUS_CRYSTAL_RELEASE_LINUX64_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-linux-x86_64.tar.gz" >> build.env echo "export PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-darwin-universal.tar.gz" >> build.env diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bd80ba439387..97d67289015b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - crystal_bootstrap_version: [1.2.2] + crystal_bootstrap_version: [1.2.2, 1.3.0] include: # libffi is only available starting from the 1.2.2 build images - crystal_bootstrap_version: 1.0.0 diff --git a/.github/workflows/openssl.yml b/.github/workflows/openssl.yml index 0d1636589289..38d396336733 100644 --- a/.github/workflows/openssl.yml +++ b/.github/workflows/openssl.yml @@ -6,7 +6,7 @@ jobs: openssl3: runs-on: ubuntu-latest name: "OpenSSL 3.0" - container: crystallang/crystal:1.2.2-alpine + container: crystallang/crystal:1.3.0-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: openssl111: runs-on: ubuntu-latest name: "OpenSSL 1.1.1" - container: crystallang/crystal:1.2.2-alpine + container: crystallang/crystal:1.3.0-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: libressl31: runs-on: ubuntu-latest name: "LibreSSL 3.1" - container: crystallang/crystal:1.2.2-alpine + container: crystallang/crystal:1.3.0-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -51,7 +51,7 @@ jobs: libressl34: runs-on: ubuntu-latest name: "LibreSSL 3.4" - container: crystallang/crystal:1.2.2-alpine + container: crystallang/crystal:1.3.0-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index 0890978d334c..9b3f9517a076 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: linux-job: runs-on: ubuntu-latest - container: crystallang/crystal:1.2.2-build + container: crystallang/crystal:1.3.0-build steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/bin/ci b/bin/ci index 0281f8f2aada..dd2cb5d301c3 100755 --- a/bin/ci +++ b/bin/ci @@ -135,8 +135,8 @@ format() { prepare_build() { on_linux verify_linux_environment - on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.2.2/crystal-1.2.2-1-darwin-universal.tar.gz -o ~/crystal.tar.gz - on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.2.2-1 crystal;popd' + on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz -o ~/crystal.tar.gz + on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.3.0-1 crystal;popd' # These commands may take a few minutes to run due to the large size of the repositories. # This restriction has been made on GitHub's request because updating shallow @@ -189,7 +189,7 @@ with_build_env() { on_linux verify_linux_environment - export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.2.2}" + export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.3.0}" case $ARCH in x86_64) diff --git a/shell.nix b/shell.nix index c2222b12122b..2e4fbdcb8492 100644 --- a/shell.nix +++ b/shell.nix @@ -52,13 +52,13 @@ let # Hashes obtained using `nix-prefetch-url --unpack ` latestCrystalBinary = genericBinary ({ x86_64-darwin = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.2.2/crystal-1.2.2-1-darwin-universal.tar.gz"; - sha256 = "sha256:1y7bcwl6jybg28sdd9xrgkxbz3ysdqn1jlgapi50avc47h30kgbb"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz"; + sha256 = "sha256:0kyy2fpn5qcq9c8qrvv8mclb6qfr0cjm8w6gfhhym7f6bsbhrsx8"; }; x86_64-linux = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.2.2/crystal-1.2.2-1-linux-x86_64.tar.gz"; - sha256 = "sha256:1cxkyq7n2xw6h9c99h28c2ssf3viiw1vigb0w6l2rpnw4f55fbqz"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz"; + sha256 = "sha256:0kyy2fpn5qcq9c8qrvv8mclb6qfr0cjm8w6gfhhym7f6bsbhrsx8"; }; }.${pkgs.stdenv.system}); diff --git a/src/VERSION b/src/VERSION index f0bb29e76388..c3f0d2bbd2b8 100644 --- a/src/VERSION +++ b/src/VERSION @@ -1 +1 @@ -1.3.0 +1.4.0-dev From e9503dd95897a03dae73f81370b47237169a9b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Mon, 17 Jan 2022 15:27:26 +0100 Subject: [PATCH 2/5] Update to 1.3.1 --- .circleci/config.yml | 2 +- .github/workflows/linux.yml | 2 +- .github/workflows/openssl.yml | 8 ++++---- .github/workflows/win.yml | 2 +- bin/ci | 6 +++--- shell.nix | 8 ++++---- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1c19258b8801..390f1b36ba8a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -134,7 +134,7 @@ jobs: echo "export CRYSTAL_SHA1=$CIRCLE_SHA1" >> build.env # Which previous version use - export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1" + export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1" echo "export PREVIOUS_CRYSTAL_RELEASE_LINUX64_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-linux-x86_64.tar.gz" >> build.env echo "export PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-darwin-universal.tar.gz" >> build.env diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 97d67289015b..caba81f611de 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - crystal_bootstrap_version: [1.2.2, 1.3.0] + crystal_bootstrap_version: [1.2.2, 1.3.0, 1.3.1] include: # libffi is only available starting from the 1.2.2 build images - crystal_bootstrap_version: 1.0.0 diff --git a/.github/workflows/openssl.yml b/.github/workflows/openssl.yml index 38d396336733..7c684d092e57 100644 --- a/.github/workflows/openssl.yml +++ b/.github/workflows/openssl.yml @@ -6,7 +6,7 @@ jobs: openssl3: runs-on: ubuntu-latest name: "OpenSSL 3.0" - container: crystallang/crystal:1.3.0-alpine + container: crystallang/crystal:1.3.1-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: openssl111: runs-on: ubuntu-latest name: "OpenSSL 1.1.1" - container: crystallang/crystal:1.3.0-alpine + container: crystallang/crystal:1.3.1-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: libressl31: runs-on: ubuntu-latest name: "LibreSSL 3.1" - container: crystallang/crystal:1.3.0-alpine + container: crystallang/crystal:1.3.1-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -51,7 +51,7 @@ jobs: libressl34: runs-on: ubuntu-latest name: "LibreSSL 3.4" - container: crystallang/crystal:1.3.0-alpine + container: crystallang/crystal:1.3.1-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index 9b3f9517a076..c88bb1d7b185 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: linux-job: runs-on: ubuntu-latest - container: crystallang/crystal:1.3.0-build + container: crystallang/crystal:1.3.1-build steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/bin/ci b/bin/ci index dd2cb5d301c3..8387de508c21 100755 --- a/bin/ci +++ b/bin/ci @@ -135,8 +135,8 @@ format() { prepare_build() { on_linux verify_linux_environment - on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz -o ~/crystal.tar.gz - on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.3.0-1 crystal;popd' + on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz -o ~/crystal.tar.gz + on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.3.1-1 crystal;popd' # These commands may take a few minutes to run due to the large size of the repositories. # This restriction has been made on GitHub's request because updating shallow @@ -189,7 +189,7 @@ with_build_env() { on_linux verify_linux_environment - export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.3.0}" + export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.3.1}" case $ARCH in x86_64) diff --git a/shell.nix b/shell.nix index 2e4fbdcb8492..c3076a51b777 100644 --- a/shell.nix +++ b/shell.nix @@ -52,13 +52,13 @@ let # Hashes obtained using `nix-prefetch-url --unpack ` latestCrystalBinary = genericBinary ({ x86_64-darwin = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz"; - sha256 = "sha256:0kyy2fpn5qcq9c8qrvv8mclb6qfr0cjm8w6gfhhym7f6bsbhrsx8"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz"; + sha256 = "sha256:18cfdp4k2cfnawxgg8k2pzy0657v5cl7sj8kyz76va5ajhrdws66"; }; x86_64-linux = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.3.0/crystal-1.3.0-1-darwin-universal.tar.gz"; - sha256 = "sha256:0kyy2fpn5qcq9c8qrvv8mclb6qfr0cjm8w6gfhhym7f6bsbhrsx8"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz"; + sha256 = "sha256:18cfdp4k2cfnawxgg8k2pzy0657v5cl7sj8kyz76va5ajhrdws66"; }; }.${pkgs.stdenv.system}); From 8873c1269fdcf4fd8bd7222a8aa7930f7b848fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Mon, 17 Jan 2022 20:11:26 +0100 Subject: [PATCH 3/5] Fix `.github/workflows/linux.yml` --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index caba81f611de..8b00fd68ee63 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - crystal_bootstrap_version: [1.2.2, 1.3.0, 1.3.1] + crystal_bootstrap_version: [1.2.2, 1.3.1] include: # libffi is only available starting from the 1.2.2 build images - crystal_bootstrap_version: 1.0.0 From 5905877015282b14808f9352d166ed35a720f8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Wed, 19 Jan 2022 23:31:54 +0100 Subject: [PATCH 4/5] Update for Crystal 1.3.2 --- .circleci/config.yml | 2 +- .github/workflows/linux.yml | 2 +- .github/workflows/openssl.yml | 8 +++---- .github/workflows/win.yml | 2 +- bin/ci | 6 +++--- scripts/release-update.sh | 40 +++++++++++++++++++++++++++++++++++ shell.nix | 8 +++---- 7 files changed, 54 insertions(+), 14 deletions(-) create mode 100755 scripts/release-update.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 390f1b36ba8a..e2a65f8caee7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -134,7 +134,7 @@ jobs: echo "export CRYSTAL_SHA1=$CIRCLE_SHA1" >> build.env # Which previous version use - export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1" + export PREVIOUS_CRYSTAL_BASE_URL="https://github.com/crystal-lang/crystal/releases/download/1.3.2/crystal-1.3.2-1" echo "export PREVIOUS_CRYSTAL_RELEASE_LINUX64_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-linux-x86_64.tar.gz" >> build.env echo "export PREVIOUS_CRYSTAL_RELEASE_DARWIN_TARGZ=${PREVIOUS_CRYSTAL_BASE_URL}-darwin-universal.tar.gz" >> build.env diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8b00fd68ee63..7a701ef68508 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - crystal_bootstrap_version: [1.2.2, 1.3.1] + crystal_bootstrap_version: [1.2.2, 1.3.2] include: # libffi is only available starting from the 1.2.2 build images - crystal_bootstrap_version: 1.0.0 diff --git a/.github/workflows/openssl.yml b/.github/workflows/openssl.yml index 7c684d092e57..c5144f655125 100644 --- a/.github/workflows/openssl.yml +++ b/.github/workflows/openssl.yml @@ -6,7 +6,7 @@ jobs: openssl3: runs-on: ubuntu-latest name: "OpenSSL 3.0" - container: crystallang/crystal:1.3.1-alpine + container: crystallang/crystal:1.3.2-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: openssl111: runs-on: ubuntu-latest name: "OpenSSL 1.1.1" - container: crystallang/crystal:1.3.1-alpine + container: crystallang/crystal:1.3.2-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -36,7 +36,7 @@ jobs: libressl31: runs-on: ubuntu-latest name: "LibreSSL 3.1" - container: crystallang/crystal:1.3.1-alpine + container: crystallang/crystal:1.3.2-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 @@ -51,7 +51,7 @@ jobs: libressl34: runs-on: ubuntu-latest name: "LibreSSL 3.4" - container: crystallang/crystal:1.3.1-alpine + container: crystallang/crystal:1.3.2-alpine steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index c88bb1d7b185..2dd9cc3567c8 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: linux-job: runs-on: ubuntu-latest - container: crystallang/crystal:1.3.1-build + container: crystallang/crystal:1.3.2-build steps: - name: Download Crystal source uses: actions/checkout@v2 diff --git a/bin/ci b/bin/ci index 8387de508c21..51700456a01d 100755 --- a/bin/ci +++ b/bin/ci @@ -135,8 +135,8 @@ format() { prepare_build() { on_linux verify_linux_environment - on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz -o ~/crystal.tar.gz - on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.3.1-1 crystal;popd' + on_osx curl -L https://github.com/crystal-lang/crystal/releases/download/1.3.2/crystal-1.3.2-1-darwin-universal.tar.gz -o ~/crystal.tar.gz + on_osx 'pushd ~;gunzip -c ~/crystal.tar.gz | tar xopf -;mv crystal-1.3.2-1 crystal;popd' # These commands may take a few minutes to run due to the large size of the repositories. # This restriction has been made on GitHub's request because updating shallow @@ -189,7 +189,7 @@ with_build_env() { on_linux verify_linux_environment - export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.3.1}" + export DOCKER_TEST_PREFIX="${DOCKER_TEST_PREFIX:=crystallang/crystal:1.3.2}" case $ARCH in x86_64) diff --git a/scripts/release-update.sh b/scripts/release-update.sh new file mode 100755 index 000000000000..f2eda74f223d --- /dev/null +++ b/scripts/release-update.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env sh +# +# This helper updates all references to the previous Crystal release as bootstrap version with a new release. +# +# Usage: +# +# scripts/release-update.sh 1.3.0 +# +# See Crystal release checklist: https://github.com/crystal-lang/distribution-scripts/blob/master/processes/crystal-release.md#post-release +set -eu + +CRYSTAL_VERSION=$1 + +# Edit PREVIOUS_CRYSTAL_BASE_URL in .circleci/config.yml +sed -i -E "s|[0-9.]+/crystal-[0-9.]+-[0-9]|$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1|g" .circleci/config.yml + +# Edit DOCKER_TEST_PREFIX in bin/ci +sed -i -E "s|crystallang/crystal:[0-9.]+|crystallang/crystal:$CRYSTAL_VERSION|" bin/ci + +# Edit prepare_build on_osx download package and folder +sed -i -E "s|[0-9.]+/crystal-[0-9.]+-[0-9]|$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1|g" bin/ci +sed -i -E "s|crystal-[0-9.]+-[0-9]|crystal-$CRYSTAL_VERSION-1|g" bin/ci + +# Edit .github/workflows/*.yml to point to docker image +# Update the patch version of the latest entry if same minor version to have only one item per minor version +sed -i -E "/crystal_bootstrap_version:/ s/(, ${CRYSTAL_VERSION%.*}\.[0-9]*)?\]\$/, $CRYSTAL_VERSION]/" .github/workflows/linux.yml +sed -i -E "s|crystallang/crystal:[0-9.]+|crystallang/crystal:$CRYSTAL_VERSION|g" .github/workflows/*.yml + +# Edit shell.nix latestCrystalBinary using nix-prefetch-url --unpack +darwin_url="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-darwin-universal.tar.gz" +darwin_sha=$(nix-prefetch-url --unpack $darwin_url) + +sed -i -E "s|https://github.com/crystal-lang/crystal/releases/download/[0-9.]+/crystal-[0-9.]+-[0-9]-darwin-universal.tar.gz|$darwin_url|" shell.nix +sed -i -E "/darwin-universal\.tar\.gz/ {n;s|sha256:[^\"]+|sha256:$darwin_sha|}" shell.nix + +linux_url="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-darwin-universal.tar.gz" +linux_sha=$(nix-prefetch-url --unpack $linux_url) + +sed -i -E "s|https://github.com/crystal-lang/crystal/releases/download/[0-9.]+/crystal-[0-9.]+-[0-9]-linux-x86_64.tar.gz|$linux_url|" shell.nix +sed -i -E "/darwin-universal\.tar\.gz/ {n;s|sha256:[^\"]+|sha256:$linux_sha|}" shell.nix diff --git a/shell.nix b/shell.nix index c3076a51b777..a6313e6c6814 100644 --- a/shell.nix +++ b/shell.nix @@ -52,13 +52,13 @@ let # Hashes obtained using `nix-prefetch-url --unpack ` latestCrystalBinary = genericBinary ({ x86_64-darwin = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz"; - sha256 = "sha256:18cfdp4k2cfnawxgg8k2pzy0657v5cl7sj8kyz76va5ajhrdws66"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.2/crystal-1.3.2-1-darwin-universal.tar.gz"; + sha256 = "sha256:1jxc5c82wxigza2z0ck51dnwpvfzba0gsczrjxgfjysqn6ki7v3q"; }; x86_64-linux = { - url = "https://github.com/crystal-lang/crystal/releases/download/1.3.1/crystal-1.3.1-1-darwin-universal.tar.gz"; - sha256 = "sha256:18cfdp4k2cfnawxgg8k2pzy0657v5cl7sj8kyz76va5ajhrdws66"; + url = "https://github.com/crystal-lang/crystal/releases/download/1.3.2/crystal-1.3.2-1-darwin-universal.tar.gz"; + sha256 = "sha256:1jxc5c82wxigza2z0ck51dnwpvfzba0gsczrjxgfjysqn6ki7v3q"; }; }.${pkgs.stdenv.system}); From aba20e42aa376cecea617f4aecb04a9d13c4b585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Wed, 19 Jan 2022 23:37:11 +0100 Subject: [PATCH 5/5] Remove release-update (wrongly committed) --- scripts/release-update.sh | 40 --------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 scripts/release-update.sh diff --git a/scripts/release-update.sh b/scripts/release-update.sh deleted file mode 100755 index f2eda74f223d..000000000000 --- a/scripts/release-update.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env sh -# -# This helper updates all references to the previous Crystal release as bootstrap version with a new release. -# -# Usage: -# -# scripts/release-update.sh 1.3.0 -# -# See Crystal release checklist: https://github.com/crystal-lang/distribution-scripts/blob/master/processes/crystal-release.md#post-release -set -eu - -CRYSTAL_VERSION=$1 - -# Edit PREVIOUS_CRYSTAL_BASE_URL in .circleci/config.yml -sed -i -E "s|[0-9.]+/crystal-[0-9.]+-[0-9]|$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1|g" .circleci/config.yml - -# Edit DOCKER_TEST_PREFIX in bin/ci -sed -i -E "s|crystallang/crystal:[0-9.]+|crystallang/crystal:$CRYSTAL_VERSION|" bin/ci - -# Edit prepare_build on_osx download package and folder -sed -i -E "s|[0-9.]+/crystal-[0-9.]+-[0-9]|$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1|g" bin/ci -sed -i -E "s|crystal-[0-9.]+-[0-9]|crystal-$CRYSTAL_VERSION-1|g" bin/ci - -# Edit .github/workflows/*.yml to point to docker image -# Update the patch version of the latest entry if same minor version to have only one item per minor version -sed -i -E "/crystal_bootstrap_version:/ s/(, ${CRYSTAL_VERSION%.*}\.[0-9]*)?\]\$/, $CRYSTAL_VERSION]/" .github/workflows/linux.yml -sed -i -E "s|crystallang/crystal:[0-9.]+|crystallang/crystal:$CRYSTAL_VERSION|g" .github/workflows/*.yml - -# Edit shell.nix latestCrystalBinary using nix-prefetch-url --unpack -darwin_url="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-darwin-universal.tar.gz" -darwin_sha=$(nix-prefetch-url --unpack $darwin_url) - -sed -i -E "s|https://github.com/crystal-lang/crystal/releases/download/[0-9.]+/crystal-[0-9.]+-[0-9]-darwin-universal.tar.gz|$darwin_url|" shell.nix -sed -i -E "/darwin-universal\.tar\.gz/ {n;s|sha256:[^\"]+|sha256:$darwin_sha|}" shell.nix - -linux_url="https://github.com/crystal-lang/crystal/releases/download/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-darwin-universal.tar.gz" -linux_sha=$(nix-prefetch-url --unpack $linux_url) - -sed -i -E "s|https://github.com/crystal-lang/crystal/releases/download/[0-9.]+/crystal-[0-9.]+-[0-9]-linux-x86_64.tar.gz|$linux_url|" shell.nix -sed -i -E "/darwin-universal\.tar\.gz/ {n;s|sha256:[^\"]+|sha256:$linux_sha|}" shell.nix