Skip to content

Commit ef52503

Browse files
committed
Revert "Remove IDRIS_SHA from build-devcontainer-img"
Turns out this was NOT the move
1 parent 4bd4cb7 commit ef52503

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/actions/build-devcontainer-img/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ runs:
7070
IDRIS_LSP_VERSION=${{ inputs.idris-lsp-version }}
7171
IDRIS_LSP_SHA=${{ steps.get-sha.outputs.lsp-sha }}
7272
IDRIS_VERSION=${{ inputs.idris-version }}
73+
IDRIS_SHA=${{ steps.get-sha.outputs.idris-sha }}
7374
BASE_IMG=${{ inputs.base-tag }}
7475
tags: ${{ inputs.tags }}
7576
load: ${{ inputs.load }}

devcontainer-sha.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ ARG BASE_IMG=ghcr.io/joshuanianji/idris-2-docker/base:${IDRIS_VERSION}
99
# Rebuild with correct prefix. Somehow, building from scratch with a different prefix fails
1010
FROM $BASE_IMG as idris-builder
1111
ARG IDRIS_VERSION
12+
ARG IDRIS_SHA
1213

1314
WORKDIR /build
14-
RUN git clone --depth 1 --branch $IDRIS_VERSION https://github.com/idris-lang/Idris2.git
15+
RUN git clone https://github.com/idris-lang/Idris2.git && cd Idris2 && git checkout $IDRIS_SHA
1516
WORKDIR /build/Idris2
1617
RUN make all PREFIX=/usr/local/lib/idris2
1718
RUN make install PREFIX=/usr/local/lib/idris2

0 commit comments

Comments
 (0)