mirror of https://github.com/hashicorp/consul
Fixes checked in web assets and associated build scripts. (#3173)
parent
50e11db5d8
commit
0e695aef94
12
GNUmakefile
12
GNUmakefile
|
@ -73,15 +73,17 @@ vet:
|
|||
exit 1; \
|
||||
fi
|
||||
|
||||
# build the static web ui and build static assets inside a Docker container, the
|
||||
# same way a release build works
|
||||
# Build the static web ui and build static assets inside a Docker container, the
|
||||
# same way a release build works. This implicitly does a "make static-assets" at
|
||||
# the end.
|
||||
ui:
|
||||
@sh -c "'$(CURDIR)/scripts/ui.sh'"
|
||||
|
||||
# generates the static web ui that's compiled into the binary
|
||||
# If you've run "make ui" manually then this will get called for you. This is
|
||||
# also run as part of the release build script when it verifies that there are no
|
||||
# changes to the UI assets that aren't checked in.
|
||||
static-assets:
|
||||
@echo "--> Generating static assets"
|
||||
@go-bindata-assetfs -pkg agent -prefix pkg ui/...
|
||||
@go-bindata-assetfs -pkg agent -prefix pkg ./pkg/web_ui/...
|
||||
@mv bindata_assetfs.go agent/
|
||||
$(MAKE) format
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -22,13 +22,13 @@ popd
|
|||
# verify that the checked-in content is up to date without spurious diffs of the
|
||||
# file mod times.
|
||||
pushd pkg
|
||||
cat ../command/agent/bindata_assetfs.go | ../scripts/fixup_times.sh
|
||||
cat ../agent/bindata_assetfs.go | ../scripts/fixup_times.sh
|
||||
popd
|
||||
|
||||
# Regenerate the built-in web assets. If there are any diffs after doing this
|
||||
# then we know something is up.
|
||||
make static-assets
|
||||
if ! git diff --quiet command/agent/bindata_assetfs.go; then
|
||||
if ! git diff --quiet agent/bindata_assetfs.go; then
|
||||
echo "Checked-in web assets are out of date, build aborted"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue