Skip to content

Commit

Permalink
fix goreleaser for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed May 3, 2024
1 parent 02d50f7 commit ba52e64
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
.DS_Store
.idea
cmd/aces/aces
cmd/aces/dist
53 changes: 0 additions & 53 deletions .goreleaser.yml

This file was deleted.

51 changes: 51 additions & 0 deletions cmd/aces/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 1

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
# main: ./cmd/aces
id: "aces"
binary: aces
ldflags:
- -s -w -X main.version=v{{.Version}} # -X main.commit={{.Commit}} -X main.date={{.Date}}

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

brews:
-
repository:
owner: quackduck
name: homebrew-tap

homepage: 'https://github.com/quackduck/aces'

description: 'Encode in a character set of your choice'
4 changes: 2 additions & 2 deletions cmd/aces/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module aces

go 1.22.2

require github.com/quackduck/aces/v2 v2.2.4
require github.com/quackduck/aces/v2 v2.2.9

replace github.com/quackduck/aces/v2 v2.2.4 => ../../v2
replace github.com/quackduck/aces/v2 => ../../v2
6 changes: 2 additions & 4 deletions cmd/aces/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
github.com/quackduck/aces v1.2.1 h1:T5Pp7zwP21Oua5kyN92/ODzpSbRvr7Eazh1dlP2GhHs=
github.com/quackduck/aces v1.2.1/go.mod h1:vYQb2Re9/zAjQhTsr5eG3jtOz0iLY/Ris8Cc5e0IxXQ=
github.com/quackduck/aces/v2 v2.2.4 h1:0vyLzsedncHpBoqYUPU7RTfGuXMfGoUracpDsfOM/Y0=
github.com/quackduck/aces/v2 v2.2.4/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc=
github.com/quackduck/aces/v2 v2.2.9 h1:Q2eisMPmSPKSu8HXwmNBoN+ayF/LDw3s7gV9NB+0++Y=
github.com/quackduck/aces/v2 v2.2.9/go.mod h1:qetNncozEsd0YeiA+R9dzE91kHYfWIfy/0cR2Qzamhc=

0 comments on commit ba52e64

Please sign in to comment.