From bc20d95bd14137be41b3f5358b527da0eb651a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 1 Oct 2025 00:35:55 +0800 Subject: [PATCH] fix: make lint&ci happy --- abineundo/ref/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/abineundo/ref/main.go b/abineundo/ref/main.go index 250d2b44..8ec52b08 100644 --- a/abineundo/ref/main.go +++ b/abineundo/ref/main.go @@ -27,8 +27,10 @@ func main() { fo.Close() regf := path.Join(*root, "custom/register.go") + tgtf := path.Join(*root, "abineundo/ref/custom/register.go") if _, err := os.Stat(regf); err != nil { if os.IsNotExist(err) { + _ = os.WriteFile(tgtf, []byte("package custom\n"), 0644) return } panic(err) @@ -38,7 +40,7 @@ func main() { if err != nil { panic(err) } - fo, err = os.Create(path.Join(*root, "abineundo/ref/custom/register.go")) + fo, err = os.Create(tgtf) if err != nil { panic(err) }