mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
dff7ed5732
Adds a Dockerfile configuration that allows straightforward running of linters with compatible versions locally. This removes a ton of annoyance when trying to appease CI, because many of the linter versions are quite old and difficult to maintain locally. I realize that people may not be thrilled to more ancillary tooling to the repo, but I think this makes a lot of sense given the linter versions listed in this container configuration are dictated by this repo (within the CI configuration), so having these things live in two separate places is a recipe for version mismatches. Eventually we can likely just use this container on CI directly to avoid any chance of inconsistencies between local dev experience and CI.
12 lines
283 B
Bash
Executable file
12 lines
283 B
Bash
Executable file
#!/usr/bin/env bash
|
|
export LC_ALL=C
|
|
|
|
# Fixes permission issues when there is a container UID/GID mismatch with the owner
|
|
# of the mounted bitcoin src dir.
|
|
git config --global --add safe.directory /bitcoin
|
|
|
|
if [ -z "$1" ]; then
|
|
bash -ic "./ci/lint/06_script.sh"
|
|
else
|
|
exec "$@"
|
|
fi
|