From 13f4b2a52642d0ec08d3e0c5464742a7a2997a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lovro=20Ma=C5=BEgon?= Date: Thu, 15 Feb 2024 14:50:33 +0100 Subject: [PATCH] fix source code path --- paramgen/README.md | 2 +- paramgen/internal/template.go | 2 +- paramgen/internal/template_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paramgen/README.md b/paramgen/README.md index eb125b1..667bfef 100644 --- a/paramgen/README.md +++ b/paramgen/README.md @@ -118,7 +118,7 @@ A file called `paramgen.go` will be created under `./source`: ```go // Code generated by ParamGen. DO NOT EDIT. -// Source: github.com/conduitio/conduit-commons/paramgen +// Source: github.com/conduitio/conduit-commons/tree/main/paramgen package source diff --git a/paramgen/internal/template.go b/paramgen/internal/template.go index 794feff..be04fff 100644 --- a/paramgen/internal/template.go +++ b/paramgen/internal/template.go @@ -28,7 +28,7 @@ import ( const ( tmpl = `// Code generated by paramgen. DO NOT EDIT. -// Source: github.com/ConduitIO/conduit-commons/tree/main/config/paramgen +// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen package {{ $.Package }} diff --git a/paramgen/internal/template_test.go b/paramgen/internal/template_test.go index 88697b7..63ac45b 100644 --- a/paramgen/internal/template_test.go +++ b/paramgen/internal/template_test.go @@ -51,7 +51,7 @@ func TestGenerateCodeWithRegex(t *testing.T) { }, "s3", "SourceConfig") want := `// Code generated by paramgen. DO NOT EDIT. -// Source: github.com/ConduitIO/conduit-commons/tree/main/config/paramgen +// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen package s3 @@ -114,7 +114,7 @@ func TestGenerateCodeWithoutRegex(t *testing.T) { }, "file", "Config") want := `// Code generated by paramgen. DO NOT EDIT. -// Source: github.com/ConduitIO/conduit-commons/tree/main/config/paramgen +// Source: github.com/ConduitIO/conduit-commons/tree/main/paramgen package file