diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cafb48af..a21699c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,9 @@ variables: # Bump to invalidate GitLab CI cache. CACHE_REV: 0 + GIT_SUBMODULE_STRATEGY: recursive + + ############################################################ # CI Step ############################################################ @@ -115,7 +118,7 @@ variables: script: - bash ./.gitlab/script/ghcup_version.sh variables: - JSON_VERSION: "0.0.6" + JSON_VERSION: "0.0.7" artifacts: expire_in: 2 week paths: @@ -248,7 +251,7 @@ variables: only: - tags variables: - JSON_VERSION: "0.0.6" + JSON_VERSION: "0.0.7" ######## stack test ######## diff --git a/.gitlab/script/ghcup_cross.sh b/.gitlab/script/ghcup_cross.sh index 0b779f2d..996fa7d8 100755 --- a/.gitlab/script/ghcup_cross.sh +++ b/.gitlab/script/ghcup_cross.sh @@ -5,8 +5,6 @@ set -eux . "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env" mkdir -p "$CI_PROJECT_DIR"/.local/bin -mkdir -p data/ -git clone https://github.com/haskell/ghcup-metadata.git data/metadata CI_PROJECT_DIR=$(pwd) diff --git a/.gitlab/script/ghcup_git.sh b/.gitlab/script/ghcup_git.sh index 6199a919..38c4c282 100755 --- a/.gitlab/script/ghcup_git.sh +++ b/.gitlab/script/ghcup_git.sh @@ -5,8 +5,6 @@ set -eux . "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env" mkdir -p "$CI_PROJECT_DIR"/.local/bin -mkdir -p data/ -git clone https://github.com/haskell/ghcup-metadata.git data/metadata CI_PROJECT_DIR=$(pwd) diff --git a/.gitlab/script/ghcup_hls.sh b/.gitlab/script/ghcup_hls.sh index ce7a5717..6f323ec3 100755 --- a/.gitlab/script/ghcup_hls.sh +++ b/.gitlab/script/ghcup_hls.sh @@ -5,8 +5,6 @@ set -eux . "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env" mkdir -p "$CI_PROJECT_DIR"/.local/bin -mkdir -p data/ -git clone https://github.com/haskell/ghcup-metadata.git data/metadata CI_PROJECT_DIR=$(pwd) diff --git a/.gitlab/script/ghcup_version.sh b/.gitlab/script/ghcup_version.sh index 3cdab044..f4626562 100755 --- a/.gitlab/script/ghcup_version.sh +++ b/.gitlab/script/ghcup_version.sh @@ -5,8 +5,6 @@ set -eux . "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env" mkdir -p "$CI_PROJECT_DIR"/.local/bin -mkdir -p data/ -git clone https://github.com/haskell/ghcup-metadata.git data/metadata CI_PROJECT_DIR=$(pwd) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..ea15d10f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "data/metadata"] + path = data/metadata + url = https://github.com/haskell/ghcup-metadata.git + branch = ghcup-0.1.17.5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8777b55f..b44cdbde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Revision history for ghcup -## 0.1.17.5 -- ????-??-?? +## 0.1.17.5 -- 2022-02-26 * Implement `ghcup run` subcommand wrt [#137](https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/137) * Support installation of dynamic HLS bindists wrt [HLS #2675](https://github.com/haskell/haskell-language-server/pull/2675) and [#237](https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/237) diff --git a/data/metadata b/data/metadata new file mode 160000 index 00000000..80b61ee4 --- /dev/null +++ b/data/metadata @@ -0,0 +1 @@ +Subproject commit 80b61ee4b7319bd8591f2510f44404cd821eff4c diff --git a/docs/dev.md b/docs/dev.md index 300f2c43..a63d6ff0 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -88,7 +88,7 @@ Every subcommand now lives in its own module under [GHCup.OptParse.MyCommand](ht # Releasing -1. Update version in `ghcup.cabal` and `boostrap-haskell` (`ghver` variable at the top of the script) +1. Update version in `ghcup.cabal` 2. Update `GHCup.Version` module. `ghcupURL` must only be updated if we change the `GHCupInfo` type or the YAML representation of it. The version of the YAML represents the change increments. `ghcUpVer` is the current application version, read from `ghcup.cabal`. @@ -102,11 +102,13 @@ Every subcommand now lives in its own module under [GHCup.OptParse.MyCommand](ht 7. Upload the final `ghcup-.yaml` (and a detached GPG sig of it) to `webhost.haskell.org/ghcup/data/` (for yaml versions <= 0.0.6) as well as [https://github.com/haskell/ghcup-metadata](https://github.com/haskell/ghcup-metadata) (for all versions). -8. Upload `bootstrap-haskell` and `bootstrap-haskell.ps1` to `webhost.haskell.org/ghcup/sh/` +8. Update version in `scripts/bootstrap/bootstrap-haskell` (`ghver` variable at the top of the script) -9. Update the top-level ghcup symlinks at `downloads.haskell.org/~ghcup` +9. Upload `scripts/bootstrap/bootstrap-haskell` and `scripts/bootstrap/bootstrap-haskell.ps1` to `webhost.haskell.org/ghcup/sh/` -10. Post on reddit/discourse/etc. and collect rewards +10. Update the top-level ghcup symlinks at `downloads.haskell.org/~ghcup` (see `scripts/update-sftp.sh`) + +11. Post on reddit/discourse/etc. and collect rewards # Documentation diff --git a/lib/GHCup/Version.hs b/lib/GHCup/Version.hs index 40c978a6..37926cb7 100644 --- a/lib/GHCup/Version.hs +++ b/lib/GHCup/Version.hs @@ -28,7 +28,7 @@ import qualified Data.Text as T -- Note that when updating this, CI requires that the file exsists AND the same file exists at -- 'https://www.haskell.org/ghcup/exp/ghcup-.yaml' with some newlines added. ghcupURL :: URI -ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml|] +ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.7.yaml|] -- | The current ghcup version. ghcUpVer :: PVP