diff --git a/ct/gomft.sh b/ct/gomft.sh index b16388217..f1788cc0b 100644 --- a/ct/gomft.sh +++ b/ct/gomft.sh @@ -53,6 +53,43 @@ function update_script() { cd /opt/gomft $STD npm install $STD npm run build + TEMPL_VERSION="$(awk '/github.com\/a-h\/templ/{print $2}' go.mod)" + $STD go install github.com/a-h/templ/cmd/templ@${TEMPL_VERSION} + # dirty hack to fix templ + cat <<'EOF' >/opt/gomft/components/file_metadata/search/file_metadata_search_content.templ +package search + +import ( + "context" + "github.com/starfleetcptn/gomft/components/file_metadata" + "github.com/starfleetcptn/gomft/components/file_metadata/list" +) + +templ FileMetadataSearchContent(ctx context.Context, data file_metadata.FileMetadataSearchData) { + +
No files found matching your search criteria.
+No files found matching your search criteria.
+