diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-05-21 11:01:02 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-05-23 11:53:38 +0200 |
| commit | ecb7480009671f03b559ca19b0f4507f9e98e8e2 (patch) | |
| tree | 7c0e76d54763df38b07defd26e9e8394a0d29a7f /Makefile | |
| parent | c06b338683a7a14ed2e9db22c5b5dae9c5fa5db6 (diff) | |
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.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
