Skip to content

Commit

Permalink
fix: align guix-check with other guix-smth scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Dec 24, 2023
1 parent fc97a2e commit f6a29ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/containers/guix/scripts/guix-check
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -eo pipefail

# shellcheck source=libexec/prelude.bash
source "$(dirname "${BASH_SOURCE[0]}")/libexec/prelude.bash"

if [[ -n "${1}" ]]; then
WORKSPACE_PATH="$1"
else
Expand All @@ -14,15 +17,14 @@ if [[ ! -d "$WORKSPACE_PATH" ]]; then
fi

cd "$WORKSPACE_PATH"
COMMIT_ID="$(git rev-parse --short=12 HEAD)"

printf "\nBinaries:\n\n"
( \
SRC_PATH_PREFIX="guix-build-${COMMIT_ID}/distsrc-" && \
SRC_PATH_PREFIX="${VERSION_BASE}/distsrc-" && \
sha256sum ${SRC_PATH_PREFIX}*/src/dash{d,-cli,-tx,-wallet}{,.exe} && \
sha256sum ${SRC_PATH_PREFIX}*/src/qt/dash-qt{,.exe} && \
sha256sum ${SRC_PATH_PREFIX}*/src/test/test_dash{,.exe} \
) | sort -k 2

printf "\nArchives:\n\n"
find "guix-build-${COMMIT_ID}/output" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2
find "${OUTDIR_BASE}" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2

0 comments on commit f6a29ab

Please sign in to comment.