Skip to content

Commit 858a3fe

Browse files
committed
Merge remote-tracking branch 'tracsis/master' into release
2 parents 12ea6ad + ac79e7e commit 858a3fe

File tree

420 files changed

+22094
-15011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

420 files changed

+22094
-15011
lines changed

.devcontainer/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
!/assets/cradles/
55
!/assets/cradles/cabal/
66
!/assets/cradles/stack/
7-
!/backups/
8-
!/bind-mounts/
97
!/conf/
108
!/conf/etc/
119
!/conf/etc/stack/
@@ -27,4 +25,3 @@
2725
!/README.md
2826

2927
!.gitignore
30-
!.keep

.devcontainer/GHC.Dockerfile

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG STACK_VERSION
66
ARG HLS_GHC_VERSION=${HLS_VERSION:+$GHC_VERSION}
77
ARG HLS_SFX=/${HLS_GHC_VERSION:-all}/hls:${HLS_VERSION:-none}
88

9-
ARG STACK_VERSION_OVERRIDE=${STACK_VERSION:-none}
9+
ARG STACK_VERSION_OVERRIDE=${STACK_VERSION}
1010

1111
FROM ${BUILD_ON_IMAGE}:${GHC_VERSION} as files
1212

@@ -20,8 +20,6 @@ RUN find /files -type d -exec chmod 755 {} \; \
2020
&& find /files -type f -exec chmod 644 {} \; \
2121
&& find /files/usr/local/bin -type f -exec chmod 755 {} \;
2222

23-
FROM glcr.b-data.ch/commercialhaskell/ssi:${STACK_VERSION_OVERRIDE} as ssi
24-
2523
FROM ${BUILD_ON_IMAGE}${HLS_SFX} as hls
2624

2725
FROM glcr.b-data.ch/ndmitchell/hlsi:latest as hlsi
@@ -88,8 +86,6 @@ RUN if [ -n "$USE_ZSH_FOR_ROOT" ]; then \
8886
fi
8987

9088
## Copy binaries as late as possible to avoid cache busting
91-
## Install Stack
92-
COPY --from=ssi /usr/local /usr/local
9389
## Install HLS
9490
COPY --from=hls /usr/local /usr/local
9591
## Install HLint
@@ -100,13 +96,23 @@ COPY --from=sci --chown=root:root /bin/shellcheck /usr/local/bin
10096
ARG HLS_VERSION
10197
ARG STACK_VERSION
10298

103-
ARG STACK_VERSION_OVERRIDE=${STACK_VERSION}
99+
ARG STACK_VERSION_OVERRIDE
104100

105101
ENV HLS_VERSION=${HLS_VERSION} \
106102
STACK_VERSION=${STACK_VERSION_OVERRIDE:-$STACK_VERSION}
107103

108-
RUN if [ "${GHC_VERSION%.*}" = "9.2" ]; then \
109-
if [ -f /usr/local/bin/stack ]; then \
110-
mv -f /usr/local/bin/stack /usr/bin/; \
111-
fi \
104+
RUN if [ -n "$STACK_VERSION_OVERRIDE" ]; then \
105+
## Install Stack
106+
cd /tmp || exit ;\
107+
curl -sSLO https://github.com/commercialhaskell/stack/releases/download/v"$STACK_VERSION"/stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz; \
108+
curl -sSLO https://github.com/commercialhaskell/stack/releases/download/v"$STACK_VERSION"/stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz.sha256; \
109+
sha256sum -cs stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz.sha256; \
110+
tar -xzf stack-"$STACK_VERSION"-linux-"$(uname -m)".tar.gz; \
111+
if dpkg --compare-versions "${GHC_VERSION%.*}" le "9.2"; then \
112+
mv -f stack-"$STACK_VERSION"-linux-"$(uname -m)"/stack /usr/bin/stack; \
113+
else \
114+
mv -f stack-"$STACK_VERSION"-linux-"$(uname -m)"/stack /usr/local/bin/stack; \
115+
fi; \
116+
## Clean up
117+
rm -rf /tmp/*; \
112118
fi

.devcontainer/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 Olivier Benz
1+
Copyright (c) 2023-2024 Olivier Benz
22

33
The code in this directory is not part of Stack (the software) and, with the
44
exceptions noted below, is distributed under the terms of the MIT License:

.devcontainer/backups/.keep

Whitespace-only changes.

.devcontainer/bind-mounts/.keep

Whitespace-only changes.

.devcontainer/devcontainer.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"build": {
44
"dockerfile": "GHC.Dockerfile",
55
"args": {
6-
"GHC_VERSION": "9.4.7",
7-
"HLS_VERSION": "2.2.0.0",
6+
"GHC_VERSION": "9.6.5",
7+
"HLS_VERSION": "2.6.0.0",
88
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
99
"SET_LANG": "C.UTF-8",
1010
"SET_TZ": ""
@@ -47,16 +47,6 @@
4747

4848
// Set 'remoteUser' to 'root' to connect as root instead.
4949
"remoteUser": "vscode",
50-
"mounts": [
51-
"source=stack-default-home-vscode,target=/home/vscode,type=volume"
52-
// "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-default-home-vscode,target=/home/vscode,type=bind"
53-
],
54-
55-
// "remoteUser": "root",
56-
// "mounts": [
57-
// "source=stack-default-root,target=/root,type=volume"
58-
// // "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-default-root,target=/root,type=bind"
59-
// ],
6050

6151
// Pip: Install packages to the user site
6252
"remoteEnv": {

.devcontainer/ghc-9.6.2/devcontainer.json renamed to .devcontainer/ghc-9.8.1/devcontainer.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "GHC 9.6.2",
2+
"name": "GHC 9.8.1",
33
"build": {
44
"dockerfile": "../GHC.Dockerfile",
55
"context": "..",
66
"args": {
7-
"GHC_VERSION": "9.6.2",
7+
"GHC_VERSION": "9.8.1",
88
"USE_ZSH_FOR_ROOT": "unset-to-use-ash",
99
"SET_LANG": "C.UTF-8",
1010
"SET_TZ": ""
@@ -45,16 +45,6 @@
4545

4646
// Set 'remoteUser' to 'root' to connect as root instead.
4747
"remoteUser": "vscode",
48-
"mounts": [
49-
"source=stack-ghc-9.6.2-home-vscode,target=/home/vscode,type=volume"
50-
// "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-ghc-9.6.2-home-vscode,target=/home/vscode,type=bind"
51-
],
52-
53-
// "remoteUser": "root",
54-
// "mounts": [
55-
// "source=stack-ghc-9.6.2-root,target=/root,type=volume"
56-
// // "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/stack-ghc-9.6.2-root,target=/root,type=bind"
57-
// ],
5848

5949
// Pip: Install packages to the user site
6050
"remoteEnv": {

.devcontainer/scripts/usr/local/bin/onCreateCommand.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
set -e
66

7-
mkdir -p "$HOME/.cabal/bin"
7+
if dpkg --compare-versions "${CABAL_VERSION%.*.*}" le-nl "3.8"; then
8+
mkdir -p "$HOME/.cabal/bin";
9+
fi
810
mkdir -p "$HOME/.local/bin"
911

1012
# Copy Zsh-related files and folders from the untouched home directory
@@ -27,12 +29,21 @@ else
2729
fi
2830

2931
# Set PATH so it includes user's private bin if it exists
32+
if ! grep -q "user's private bin" "$HOME/.bashrc"; then
33+
echo -e "\nPATH=\"\${PATH%:\$HOME/.local/bin}\"" >> "$HOME/.bashrc";
34+
echo -e "\n# set PATH so it includes user's private bin if it exists\nif [ -d \"\$HOME/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/bin\"* ]] ; then\n PATH=\"\$HOME/bin:\$PATH\"\nfi" >> "$HOME/.bashrc";
35+
echo -e "\n# set PATH so it includes user's private bin if it exists\nif [ -d \"\$HOME/.local/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/.local/bin\"* ]] ; then\n PATH=\"\$HOME/.local/bin:\$PATH\"\nfi" >> "$HOME/.bashrc";
36+
fi
3037
if ! grep -q "user's private bin" "$HOME/.zshrc"; then
38+
echo -e "\nPATH=\"\${PATH%:\$HOME/.local/bin}\"" >> "$HOME/.zshrc";
3139
echo -e "\n# set PATH so it includes user's private bin if it exists\nif [ -d \"\$HOME/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/bin\"* ]] ; then\n PATH=\"\$HOME/bin:\$PATH\"\nfi" >> "$HOME/.zshrc";
3240
echo -e "\n# set PATH so it includes user's private bin if it exists\nif [ -d \"\$HOME/.local/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/.local/bin\"* ]] ; then\n PATH=\"\$HOME/.local/bin:\$PATH\"\nfi" >> "$HOME/.zshrc";
3341
fi
3442

3543
# Set PATH so it includes cabal's bin if it exists
44+
if ! grep -q "cabal's bin" "$HOME/.bashrc"; then
45+
echo -e "\n# set PATH so it includes cabal's bin if it exists\nif [ -d \"\$HOME/.cabal/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/.cabal/bin\"* ]] ; then\n PATH=\"\$HOME/.cabal/bin:\$PATH\"\nfi" >> "$HOME/.bashrc";
46+
fi
3647
if ! grep -q "cabal's bin" "$HOME/.zshrc"; then
3748
echo -e "\n# set PATH so it includes cabal's bin if it exists\nif [ -d \"\$HOME/.cabal/bin\" ] && [[ \"\$PATH\" != *\"\$HOME/.cabal/bin\"* ]] ; then\n PATH=\"\$HOME/.cabal/bin:\$PATH\"\nfi" >> "$HOME/.zshrc";
3849
fi

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ about: Report a bug in Stack
55

66
Please follow the steps below for reporting a bug in Stack:
77

8-
Make sure that you are using the latest release (currently Stack 2.11.1). See the
8+
Make sure that you are using the latest release (currently Stack 2.13.1). See the
99
[upgrade instructions](http://docs.haskellstack.org/en/stable/install_and_upgrade/#upgrade)
1010
to upgrade.
1111

@@ -45,7 +45,7 @@ stack <your command here> <args> --verbose
4545

4646
~~~text
4747
stack --version
48-
Version 2.11.1, Git revision c1167a6abc3f4978ccded5ba0246a57387da0e2f x86_64 hpack-0.35.2
48+
Version 2.13.1, Git revision 8102bb8afce90fc954f48efae38b87f37cabc988 x86_64 hpack-0.36.0
4949
~~~
5050

5151
### Method of installation

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Feature Request
33
about: Request a feature be added to Stack, or discuss such a feature
44
---
55

6-
Make sure that you are using the latest release (currently Stack 2.11.1). See the
6+
Make sure that you are using the latest release (currently Stack 2.13.1). See the
77
[upgrade instructions](http://docs.haskellstack.org/en/stable/install_and_upgrade/#upgrade)
88
to upgrade.
99

0 commit comments

Comments
 (0)