From 4826c28ef2aca1ee7dba7111e48d3b6a9c83d9a8 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Fri, 6 Jun 2025 16:38:12 +0200 Subject: pkg: restore vcs.TreeLink and html.SetGlobSearchPath This partially reverts commit 43f51a00700e5960fc890e6c3d596846757bf29d to restore vcs.TreeLink and html.SetGlobSearchPath. This broke internal code. --- pkg/html/html.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/html') diff --git a/pkg/html/html.go b/pkg/html/html.go index 9d15c8777..e077153d1 100644 --- a/pkg/html/html.go +++ b/pkg/html/html.go @@ -29,6 +29,12 @@ var globSearchPath = func() string { return "templates/" }() +// SetGlobSearchPath overrides the default path where syzkaller looks for templates. +// Used externally - do not remove. +func SetGlobSearchPath(path string) { + globSearchPath = path +} + func CreateGlob(glob string) *template.Template { if strings.Contains(glob, string(filepath.Separator)) { panic("glob can't be a path, the files mask is expected") -- cgit mrf-deployment