aports/testing/nomad/static-assets.patch
Kevin Daudt 7bf732450e testing/nomad: fix static-assets patch
The patch removes the custom output filename, but doesn't update the
filename that is moved.
2020-08-18 18:05:27 +00:00

18 lines
863 B
Diff

This patch removes the custom output name option that is handled properly only
in the master branch of go-bindata-assetfs (see https://github.com/elazarl/go-bindata-assetfs/pull/32)
diff --git a/GNUmakefile b/GNUmakefile
index 311faf6..770e136 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -345,8 +345,8 @@ testcluster: ## Bring up a Linux test cluster using Vagrant. Set PROVIDER if nec
.PHONY: static-assets
static-assets: ## Compile the static routes to serve alongside the API
@echo "--> Generating static assets"
- @go-bindata-assetfs -pkg agent -prefix ui -modtime 1480000000 -tags ui -o bindata_assetfs.go ./ui/dist/...
- @mv bindata_assetfs.go command/agent
+ @go-bindata-assetfs -pkg agent -prefix ui -modtime 1480000000 -tags ui ./ui/dist/...
+ @mv bindata.go command/agent/bindata_assetfs.go
.PHONY: test-ui
test-ui: ## Run Nomad UI test suite