From 863599870457c23c9c2ba932f12ea488da982919 Mon Sep 17 00:00:00 2001 From: thinkgos Date: Tue, 2 Apr 2024 02:26:46 +0000 Subject: [PATCH] fix: fix release bug --- .goreleaser.yaml | 52 ++++++++++++++--------------- cmd/ormat/command/helper_version.go | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 915ce12..05c24bd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,33 +17,33 @@ gomod: proxy: true builds: - # - id: ens - # main: . - # # If true, skip the build. for library projects. - # skip: true - - - id: ormat + - id: ens main: . - binary: ormat - dir: cmd/ormat - env: - - CGO_ENABLED=0 - goos: - - linux - - windows - - darwin - goarch: - - amd64 - - arm64 - # - "386" - # - arm - # goarm: - # - "7" - mod_timestamp: "{{ .CommitTimestamp }}" - flags: - - -trimpath - ldflags: - - -s -w + # If true, skip the build. for library projects. + skip: true + + # - id: ormat + # main: . + # binary: ormat + # dir: cmd/ormat + # env: + # - CGO_ENABLED=0 + # goos: + # - linux + # - windows + # - darwin + # goarch: + # - amd64 + # - arm64 + # # - "386" + # # - arm + # # goarm: + # # - "7" + # mod_timestamp: "{{ .CommitTimestamp }}" + # flags: + # - -trimpath + # ldflags: + # - -s -w archives: - name_template: >- {{ .ProjectName }}_ diff --git a/cmd/ormat/command/helper_version.go b/cmd/ormat/command/helper_version.go index f60186a..f95cf42 100644 --- a/cmd/ormat/command/helper_version.go +++ b/cmd/ormat/command/helper_version.go @@ -5,7 +5,7 @@ import ( "runtime" ) -const version = "v0.16.2" +const version = "v0.17.0" func BuildVersion() string { return fmt.Sprintf("%s\nGo Version: %s\nGo Os: %s\nGo Arch: %s\n",