Skip to content

Commit

Permalink
fix: ensure validatorctl arch matches haul arch (#374)
Browse files Browse the repository at this point in the history
## Issue
Resolves #372

## Description
Dynamically update validatorctl binary arch during `make haul`.

---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson authored Aug 8, 2024
1 parent 37fa8f3 commit ca38f3e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ haul: hauler ## Generate Hauls for latest release
$(eval GOOS=$(word 1,$(subst /, ,$(platform)))) \
$(eval GOARCH=$(word 2,$(subst /, ,$(platform)))) \
echo "Building Haul for $(GOOS)/$(GOARCH)..."; \
$(HAULER) store sync -s store-$(GOOS)-$(GOARCH) -f hauler-manifest.yaml -p $(platform); \
sed "s|ARCH|$(GOARCH)|g" hauler-manifest.yaml > hauler-manifest-$(GOOS)-$(GOARCH).yaml; \
$(HAULER) store sync -s store-$(GOOS)-$(GOARCH) -f hauler-manifest-$(GOOS)-$(GOARCH).yaml -p $(platform); \
$(HAULER) store save -s store-$(GOOS)-$(GOARCH) -f validator-haul-$(GOOS)-$(GOARCH).tar.zst; \
rm -f hauler-manifest-$(GOOS)-$(GOARCH).yaml; \
rm -rf store-$(GOOS)-$(GOARCH);)

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

0 comments on commit ca38f3e

Please sign in to comment.