From b7e832d8a5a00ed6647735b8c9a3151cb8496899 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 27 Oct 2025 00:26:54 -0500 Subject: env() is useful --- init.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init.go') diff --git a/init.go b/init.go index 1c04769..37f6e4b 100644 --- a/init.go +++ b/init.go @@ -81,6 +81,11 @@ func (f *Forge) postInit() error { env.SetGlobal("lib/forgepb", "gopath", gopath) } + // always define + if env.Get("curpatches") == "" { + env.SetGlobal("lib/forgepb", "curpatches", "curpatches.pb") + } + // always set f.mode switch env.Get("Mode") { case "NORMAL": -- cgit v1.2.3