ea1e4aa52d
Replace bindata packages with stdlib go:embed. Modernize some uiserver code with newer interfaces introduced in go 1.16 (mainly working with fs.File instead of http.File. Remove steps that are no longer used from our build files. Add Github Action to detect differences in agent/uiserver/dist and verify that the files are correct (by compiling UI assets and comparing contents). |
||
---|---|---|
.. | ||
dist | ||
testdata | ||
buf_index_fs.go | ||
buffered_file.go | ||
README.md | ||
redirect_fs.go | ||
ui_template_data.go | ||
uiserver.go | ||
uiserver_test.go |
uiserver
The contents of dist/
are generated by make ui
in the root of this repo
which compiles ui
assets and copies them here.
A CI job (publish-static-assets
) will detect any diffs in ui
files and
commit the compiled files. Avoid committing files manually to dist/
.