Skip to content

Commit ca38f3e

Browse files
authored
fix: ensure validatorctl arch matches haul arch (#374)
## Issue Resolves #372 ## Description Dynamically update validatorctl binary arch during `make haul`. --------- Signed-off-by: Tyler Gillson <[email protected]>
1 parent 37fa8f3 commit ca38f3e

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ haul: hauler ## Generate Hauls for latest release
2929
$(eval GOOS=$(word 1,$(subst /, ,$(platform)))) \
3030
$(eval GOARCH=$(word 2,$(subst /, ,$(platform)))) \
3131
echo "Building Haul for $(GOOS)/$(GOARCH)..."; \
32-
$(HAULER) store sync -s store-$(GOOS)-$(GOARCH) -f hauler-manifest.yaml -p $(platform); \
32+
sed "s|ARCH|$(GOARCH)|g" hauler-manifest.yaml > hauler-manifest-$(GOOS)-$(GOARCH).yaml; \
33+
$(HAULER) store sync -s store-$(GOOS)-$(GOARCH) -f hauler-manifest-$(GOOS)-$(GOARCH).yaml -p $(platform); \
3334
$(HAULER) store save -s store-$(GOOS)-$(GOARCH) -f validator-haul-$(GOOS)-$(GOARCH).tar.zst; \
35+
rm -f hauler-manifest-$(GOOS)-$(GOARCH).yaml; \
3436
rm -rf store-$(GOOS)-$(GOARCH);)
3537

3638
HAULER_VERSION ?= 1.0.4
@@ -40,4 +42,4 @@ hauler: ## Install hauler
4042
echo "Hauler version $(HAULER_VERSION) not found, downloading..."; \
4143
curl -sfL https://get.hauler.dev | HAULER_VERSION=$(HAULER_VERSION) bash; \
4244
}
43-
HAULER = /usr/local/bin/hauler
45+
HAULER ?= /usr/local/bin/hauler

0 commit comments

Comments
 (0)