From ecb7480009671f03b559ca19b0f4507f9e98e8e2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 21 May 2022 11:01:02 +0200 Subject: pkg/html/pages: switch to go:embed We use clumsy generate scripts that embed some static files. Switch to the new go:embed thing (added in Go 1.16): https://pkg.go.dev/embed It's much nicer, does not require separate generate step and does not lead to additional diffs in code reviews. go:embed can only embed "files read from the package directory or subdirectories", so we need to move these assets to the package dir. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6a2fb7b57..18448309e 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,7 @@ generate: $(MAKE) format generate_go: format_cpp - $(GO) generate ./pkg/csource ./executor ./pkg/ifuzz ./pkg/build ./pkg/html/pages + $(GO) generate ./pkg/csource ./executor ./pkg/ifuzz ./pkg/build generate_fidl: ifeq ($(TARGETOS),fuchsia) -- cgit mrf-deployment