Skip to content

Commit 8278f37

Browse files
committed
fix: Pass correct value for plugin version
1 parent 5554039 commit 8278f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serve/package.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (s *PluginServe) build(pluginDirectory string, target plugin.BuildTarget, d
128128
if target.IncludeSymbols {
129129
stripSymbols = ""
130130
}
131-
ldFlags := fmt.Sprintf("%[1]s -w -X %[2]s/plugin.Version=%[3]s -X %[2]s/resources/plugin.Version=%[2]s", stripSymbols, importPath, pluginVersion)
131+
ldFlags := fmt.Sprintf("%[1]s -w -X %[2]s/plugin.Version=%[3]s -X %[2]s/resources/plugin.Version=%[3]s", stripSymbols, importPath, pluginVersion)
132132
args := []string{"build", "-o", pluginPath}
133133
args = append(args, "-buildmode=exe")
134134
args = append(args, "-ldflags", ldFlags)

0 commit comments

Comments
 (0)