From 779ddb3b2228816bfb72ae3646601654708ad836 Mon Sep 17 00:00:00 2001 From: Squire as Brandon High <759848+highb@users.noreply.github.com> Date: Wed, 26 Aug 2026 16:18:12 +0000 Subject: [PATCH] fix(config): restore the go:generate directive so make generate works pkg/config had no //go:generate directive, so the Makefile's "go generate ./pkg/config" was a silent no-op and make generate never regenerated conf.gen.go. Running the generator by hand instead ("go run ./pkg/config/gen") writes conf.gen.go relative to the working directory, so it landed in the repo root and had to be moved. A go:generate directive runs with the working directory set to the package, which fixes both halves at once. baton-datadog, baton-okta, baton-github and baton-slack all carry the same line; this repo is the outlier. make generate now reproduces the committed conf.gen.go byte for byte. Co-authored-by: c1-squire-dev[bot] Co-Authored-By: Claude Opus 5 --- pkg/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 64de7d4c..1deae072 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -4,6 +4,7 @@ import ( "github.com/conductorone/baton-sdk/pkg/field" ) +//go:generate go run ./gen var ( AccountUrlField = field.StringField( "account-url",