revert: Makefile buff-ification (#3700) (#3848)

This caused the following issues:
- Slim binaries weren't being updated.
- The coder.tar.ztd was misplaced.
- There is no coder.sha1 file with proper filenames.

This should be reintroduced in a future change with those fixes.
This commit is contained in:
Kyle Carberry
2022-09-02 14:46:58 -05:00
committed by GitHub
parent d350d9033c
commit e490bdd531
16 changed files with 709 additions and 517 deletions
+29 -27
View File
@@ -5,37 +5,39 @@
#
# Usage: yarn_install.sh [optional extra flags]
set -euo pipefail
# shellcheck source=scripts/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
set -eo pipefail
cdroot
cd site
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
PROJECT_ROOT=$(cd "$SCRIPT_DIR" && git rev-parse --show-toplevel)
yarn_flags=(
# Do not execute install scripts
# TODO: check if build works properly with this enabled
# --ignore-scripts
(
cd "$PROJECT_ROOT/site"
# Check if existing node_modules are valid
# TODO: determine if this is necessary
# --check-files
)
yarn_flags=(
# Do not execute install scripts
# TODO: check if build works properly with this enabled
# --ignore-scripts
if [[ -n ${CI:-} ]]; then
yarn_flags+=(
# Install dependencies from lockfile, ensuring builds are fully
# reproducible
--frozen-lockfile
# Suppress progress information
--silent
# Disable interactive prompts for build
--non-interactive
# Check if existing node_modules are valid
# TODO: determine if this is necessary
# --check-files
)
fi
# Append whatever is specified on the command line
yarn_flags+=("$@")
if [[ -n ${CI:-} ]]; then
yarn_flags+=(
# Install dependencies from lockfile, ensuring builds are fully
# reproducible
--frozen-lockfile
# Suppress progress information
--silent
# Disable interactive prompts for build
--non-interactive
)
fi
echo "+ yarn install ${yarn_flags[*]}"
yarn install "${yarn_flags[@]}"
# Append whatever is specified on the command line
yarn_flags+=("$@")
echo "+ yarn install ${yarn_flags[*]}"
yarn install "${yarn_flags[@]}"
)