exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 3923530608d02130841f6daa2c2d07155655ac80
parent dc81d01304e3cf93c4ae86ab8c11fa778aff583f
Author: Florian Dold <florian@dold.me>
Date:   Mon, 31 Jul 2023 10:52:34 +0200

make sure gana files are built from pinned submodule

Previously the bootstrap script would always pull and build
from the latest gana.git master, which led to unreproducible
builds, and broke building older tags of the exchange from git when
gana did a breaking change.

Diffstat:
Mbootstrap | 3++-
Mcontrib/Makefile.am | 2+-
Rcontrib/gana-update.sh -> contrib/gana-generate.sh | 0
Acontrib/gana-latest.sh | 10++++++++++
Dcontrib/gana.sh | 10----------
5 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/bootstrap b/bootstrap @@ -18,7 +18,8 @@ fi echo "$0: Updating submodules" echo | git submodule update --init -./contrib/gana.sh +# Generate based on pinned submodule +./contrib/gana-generate.sh # This is more portable than `which' but comes with # the caveat of not(?) properly working on busybox's ash: diff --git a/contrib/Makefile.am b/contrib/Makefile.am @@ -49,7 +49,7 @@ EXTRA_DIST = \ taler-bank-manage-testing \ taler-nexus-prepare \ taler-terms-generator.in \ - gana-update.sh \ + gana-generate.sh \ gana/gnu-taler-error-codes/registry.rec \ gana/gnu-taler-error-codes/Makefile \ $(terms_DATA) \ diff --git a/contrib/gana-update.sh b/contrib/gana-generate.sh diff --git a/contrib/gana-latest.sh b/contrib/gana-latest.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Helper script to update to latest GANA +# Run from exchange/ main directory. +set -eu + +cd contrib/gana +git pull origin master +cd ../.. + +exec ./contrib/gana-generate.sh diff --git a/contrib/gana.sh b/contrib/gana.sh @@ -1,10 +0,0 @@ -#!/bin/sh -# Helper script to update to latest GANA -# Run from exchange/ main directory. -set -eu - -cd contrib/gana -git pull origin master -cd ../.. - -exec ./contrib/gana-update.sh