From 84875ac2a1e94621eb3e35d72d362d682b27104d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Wed, 26 Jul 2023 09:49:51 +0200 Subject: [PATCH] semconvgen: Quickfix after semconv repo migration (#374) --- .chloggen/semconvgen-quickfix.yaml | 16 ++++++++++++++++ semconvgen/generator.go | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .chloggen/semconvgen-quickfix.yaml diff --git a/.chloggen/semconvgen-quickfix.yaml b/.chloggen/semconvgen-quickfix.yaml new file mode 100644 index 00000000..0d87ecc4 --- /dev/null +++ b/.chloggen/semconvgen-quickfix.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: bug_fix + +# The name of the component, or a single word describing the area of concern, (e.g. crosslink) +component: semconvgen + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Fix semconvgen to work for the new semantic conventions repository. + +# One or more tracking issues related to the change +issues: [374] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/semconvgen/generator.go b/semconvgen/generator.go index 94482e3f..ac1ac861 100644 --- a/semconvgen/generator.go +++ b/semconvgen/generator.go @@ -166,7 +166,7 @@ func render(cfg config) error { "run", "--rm", "-v", fmt.Sprintf("%s:/data:Z", tmpDir), cfg.containerImage, - "--yaml-root", path.Join("/data/input/semantic_conventions/", path.Base(cfg.inputPath)), + "--yaml-root", path.Join("/data/input/model/", path.Base(cfg.inputPath)), } if cfg.onlyType != "" { args = append(args, "--only", cfg.onlyType)