Skip to content

Commit ba4ee57

Browse files
authored
Merge pull request #40 from zaid-google/fix_version_in_zap
Fix hard coded version in zap command
2 parents fe82e5b + acffd4c commit ba4ee57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zap/render/version.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515

1616
"github.com/beevik/etree"
1717
"github.com/project-chip/alchemy/zap"
18+
"github.com/project-chip/alchemy/config"
1819
)
1920

2021
func (cr *configuratorRenderer) patchComments(configurator *zap.Configurator, x *etree.Document) error {
@@ -126,7 +127,7 @@ func (cr *configuratorRenderer) patchAlchemyComment(configurator *zap.Configurat
126127
Path: strings.Join(paths, " "),
127128
Parameters: args,
128129
Git: cr.generator.specVersion,
129-
Version: "v1.5.50",
130+
Version: config.Version(),
130131
})
131132
if err != nil {
132133
return err

0 commit comments

Comments
 (0)