mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
improve repin experience on macOS (#10128)
this hopefully at least helps the problem hit at https://github.com/certbot/certbot/pull/10126#discussion_r1909714276 i took this approach because in my experience, linux specific shell commands have crept into our scripts repeatedly over the years so i think just having macOS devs use the linux versions is much more reliable. it's what i've personally been doing for years now
This commit is contained in:
@@ -9,7 +9,11 @@ set -euo pipefail
|
||||
WORK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
COMMON_DIR="$(dirname "${WORK_DIR}")/common"
|
||||
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||
RELATIVE_SCRIPT_PATH="$(realpath --relative-to "$REPO_ROOT" "$WORK_DIR")/$(basename "${BASH_SOURCE[0]}")"
|
||||
if ! RELATIVE_WORK_DIR="$(realpath --relative-to "$REPO_ROOT" "$WORK_DIR")"; then
|
||||
echo this script needs GNU coreutils to be first in your PATH rather than macOS/BSD versions
|
||||
exit 1
|
||||
fi
|
||||
RELATIVE_SCRIPT_PATH="$RELATIVE_WORK_DIR/$(basename "${BASH_SOURCE[0]}")"
|
||||
REQUIREMENTS_FILE="$REPO_ROOT/tools/requirements.txt"
|
||||
|
||||
PINNINGS=$("${COMMON_DIR}/export-pinned-dependencies.sh" "${WORK_DIR}" "$@")
|
||||
|
||||
@@ -9,7 +9,11 @@ set -euo pipefail
|
||||
WORK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
COMMON_DIR="$(dirname "${WORK_DIR}")/common"
|
||||
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||
RELATIVE_SCRIPT_PATH="$(realpath --relative-to "$REPO_ROOT" "$WORK_DIR")/$(basename "${BASH_SOURCE[0]}")"
|
||||
if ! RELATIVE_WORK_DIR="$(realpath --relative-to "$REPO_ROOT" "$WORK_DIR")"; then
|
||||
echo this script needs GNU coreutils to be first in your PATH rather than macOS/BSD versions
|
||||
exit 1
|
||||
fi
|
||||
RELATIVE_SCRIPT_PATH="$RELATIVE_WORK_DIR/$(basename "${BASH_SOURCE[0]}")"
|
||||
CONSTRAINTS_FILE="$REPO_ROOT/tools/oldest_constraints.txt"
|
||||
|
||||
PINNINGS=$("${COMMON_DIR}/export-pinned-dependencies.sh" "${WORK_DIR}" "$@")
|
||||
|
||||
Reference in New Issue
Block a user