about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSilvan Mosberger <silvan.mosberger@tweag.io>2024-01-17 21:23:24 +0100
committerSilvan Mosberger <silvan.mosberger@tweag.io>2024-01-17 21:26:39 +0100
commit1516b35afa9dca43d40a605292098bd24543009a (patch)
tree4f7c4433ac44cf14d327f052289f63f4a317ebbd /pkgs
parent8cf3cd91b2b6052f99fbe78f80141e57fcc02230 (diff)
downloadnixlib-1516b35afa9dca43d40a605292098bd24543009a.tar
nixlib-1516b35afa9dca43d40a605292098bd24543009a.tar.gz
nixlib-1516b35afa9dca43d40a605292098bd24543009a.tar.bz2
nixlib-1516b35afa9dca43d40a605292098bd24543009a.tar.lz
nixlib-1516b35afa9dca43d40a605292098bd24543009a.tar.xz
nixlib-1516b35afa9dca43d40a605292098bd24543009a.tar.zst
nixlib-1516b35afa9dca43d40a605292098bd24543009a.zip
check-by-name: Remove legacy CI script
See the removed comment for why it can be removed now
Diffstat (limited to 'pkgs')
-rwxr-xr-xpkgs/test/nixpkgs-check-by-name/scripts/fetch-pinned-tool.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/pkgs/test/nixpkgs-check-by-name/scripts/fetch-pinned-tool.sh b/pkgs/test/nixpkgs-check-by-name/scripts/fetch-pinned-tool.sh
deleted file mode 100755
index a69df2d08da2..000000000000
--- a/pkgs/test/nixpkgs-check-by-name/scripts/fetch-pinned-tool.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-# Legacy script, can be removed once the PR removing its use is merged.
-# It's not used anymore because CI and local runs both use pinned-tool.json as their source of truth now,
-# though in different ways since local runs need to support arbitrary platforms
-
-# Try to not use nix-shell here to avoid fetching Nixpkgs,
-# especially since this is used in CI
-# The only dependency is `jq`, which in CI is implicitly available
-# And when run from ./run-local.sh is provided by that parent script
-
-set -o pipefail -o errexit -o nounset
-
-trace() { echo >&2 "$@"; }
-
-SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
-
-pin_file=$SCRIPT_DIR/pinned-tool.json
-
-if (( $# < 1 )); then
-    trace "Usage: $0 fetch OUTPUT_PATH"
-    trace "OUTPUT_PATH: The output symlink path for the tool"
-    exit 1
-fi
-output=$1
-
-trace "Reading $pin_file.. "
-rev=$(jq -r .rev "$SCRIPT_DIR"/pinned-tool.json)
-trace -e "Git revision is \e[34m$rev\e[0m"
-path=$(jq -r '."ci-path"' "$SCRIPT_DIR"/pinned-tool.json)
-trace "Tooling path is $path"
-
-trace -n "Fetching the prebuilt version of nixpkgs-check-by-name.. "
-nix-store --add-root "$output" -r "$path" >/dev/null
-realpath "$output"