Skip to content

Commit

Permalink
Set a default toolchain in our devcontainer.
Browse files Browse the repository at this point in the history
Sets it to the toolchain of the project we're cloning, if any, or
otherwise to stable.

Setting it at all is useful in order to enable single files to work (be
editable) without warning to standard error that no default toolchain is
configured.
  • Loading branch information
Julian committed Oct 14, 2024
1 parent 919a753 commit fa3c288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/lazyvim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY lean.lua .config/nvim/lua/plugins/lean.lua

ARG LEAN_PROJECT=https://github.com/leanprover-community/mathlib4

RUN git clone --filter=blob:none $LEAN_PROJECT && cd $(basename "$LEAN_PROJECT") && lake exe cache get
RUN git clone --filter=blob:none $LEAN_PROJECT && cd $(basename "$LEAN_PROJECT") && lake exe cache get && elan default "$(cat lean-toolchain || echo stable)"

# SHELL isn't supported by OCI images
CMD ["zsh", "-l"]

0 comments on commit fa3c288

Please sign in to comment.