Skip to content

Commit

Permalink
fix(packages): fix go templates
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Sep 5, 2024
1 parent 04ea550 commit 04cd508
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/offline-packages.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# See README.md
{{- $binlog_final_version_map := coll.Dict "~8.1.1-0" "v8.1.1" "~7.5.3-0" "v7.5.3" "~7.1.5-0" "v7.1.5" "~6.5.10-0" "v6.5.10" "~6.1.7-0" "v6.1.7" }}
{{- $use_binlog_version := .Release.version }}
{{- for k, v := $binlog_final_version_map }}
{{- if (semver.CheckConstraint $k .Release.version) }}
{{- $temp_release_version := .Release.version }}
{{- range $k, $v := $binlog_final_version_map }}
{{- if (semver.CheckConstraint $k $temp_release_version) }}
{{- $use_binlog_version = $v }}
{{- end }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions packages/packages.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# See README.md
{{- $binlog_final_version_map := coll.Dict "~8.1.1-0" "v8.1.1" "~7.5.3-0" "v7.5.3" "~7.1.5-0" "v7.1.5" "~6.5.10-0" "v6.5.10" "~6.1.7-0" "v6.1.7" }}
{{- $use_binlog_package_tag_prefix := .Git.ref }}
{{- for k, v := $binlog_final_version_map }}
{{- if (semver.CheckConstraint $k .Release.version) }}
{{- $temp_release_version = .Release.version }}
{{- range $k, $v := $binlog_final_version_map }}
{{- if (semver.CheckConstraint $k $temp_release_version) }}
{{- $use_binlog_package_tag_prefix = $v }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 04cd508

Please sign in to comment.