Summary
title pretty much says it all.
Reproduce by using a container image like something alpine based (and that specifically doesn't have bash installed).
- install prek
- install hooks via
prek install
- Open .git/hooks and check any of the relevant (real) hook files
- you'll see the first line is
#!/usr/bin/env bash
Platform
docker image python:3.14.2-alpine3.23
Version
0.2.27
.pre-commit-config.yaml
No response
Log file
This won't happen when running prek directly; it's an issue with the hooks files that prek generates when running prek install. Run prek install and then examine the created hooks files
Summary
title pretty much says it all.
Reproduce by using a container image like something alpine based (and that specifically doesn't have bash installed).
prek install#!/usr/bin/env bashPlatform
docker image python:3.14.2-alpine3.23
Version
0.2.27
.pre-commit-config.yaml
No response
Log file
This won't happen when running prek directly; it's an issue with the hooks files that prek generates when running prek install. Run prek install and then examine the created hooks files