Skip to content

Commit 4264bd4

Browse files
fix: VersionRef serializable
1 parent 8468337 commit 4264bd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/targets_def.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ func (r *VersionRef) UnmarshalText(text []byte) error {
110110
return nil
111111
}
112112

113+
func (r VersionRef) MarshalText() ([]byte, error) {
114+
return []byte(r.String()), nil
115+
}
116+
113117
func (opts OptionFlags) HasOptionValue(name, value string) bool {
114118
if opt, ok := opts[name]; ok {
115119
return slices.Contains(opt.Values, value)

0 commit comments

Comments
 (0)