Skip to content

Commit

Permalink
devenv: Install the latest hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Jul 21, 2024
1 parent e8c9abe commit de7dd92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .devcontainer/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ifeq ($(strip $(ARCH)),)
$(error Unable to determine platform architecture)
endif

HATCH_VERSION = 1.10.0
NODE_VERSION := 18.20.4

# The versions of Python we support
Expand All @@ -17,12 +16,12 @@ PY_INTERPRETERS =
HATCH ?= $(or $(shell command -v hatch), $(BIN)/hatch)

$(HATCH):
curl -L --output /tmp/hatch.tar.gz https://github.com/pypa/hatch/releases/download/hatch-v$(HATCH_VERSION)/hatch-$(HATCH_VERSION)-$(ARCH)-unknown-linux-gnu.tar.gz
curl -L --output /tmp/hatch.tar.gz https://github.com/pypa/hatch/releases/latest/download/hatch-$(ARCH)-unknown-linux-gnu.tar.gz
tar -xf /tmp/hatch.tar.gz -C /tmp
rm /tmp/hatch.tar.gz

test -d $(BIN) || mkdir -p $(BIN)
mv /tmp/hatch-$(HATCH_VERSION)-$(ARCH)-unknown-linux-gnu $(HATCH)
mv /tmp/hatch $(HATCH)

$@ --version
touch $@
Expand Down

0 comments on commit de7dd92

Please sign in to comment.