Skip to content

Commit ed2dc7c

Browse files
authored
Add goreleaser shim (#38)
Add goreleaser and shim
1 parent 27847fb commit ed2dc7c

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

.goreleaser.yaml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
# .goreleaser.yml
2-
# before:
3-
# hooks:
4-
# - go mod tidy
5-
# - go generate ./...
62

7-
# builds:
8-
# - env: [CGO_ENABLED=0]
9-
# goos:
10-
# - linux
11-
# - windows
12-
# - darwin
13-
# goarch:
14-
# - amd64
15-
# - arm64
16-
# ldflags:
17-
# - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.CommitDate}}
18-
# mod_timestamp: '{{ .CommitTimestamp }}'
3+
builds:
4+
- env: [CGO_ENABLED=0]
5+
dir: go
6+
goos:
7+
- linux
8+
- darwin
9+
goarch:
10+
- amd64
11+
- arm64
1912

2013
# dockers:
2114
# - image_templates: ["ghcr.io/krzko/{{ .ProjectName }}:{{ .Version }}-amd64"]
@@ -57,18 +50,15 @@
5750
# - ghcr.io/krzko/{{ .ProjectName }}:{{ .Version }}-arm64v8
5851

5952
archives:
60-
format: gz
61-
# - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
62-
# format_overrides:
63-
# - goos: windows
64-
# format: zip
65-
# wrap_in_directory: true
53+
- files:
54+
- Makefile
55+
- library/*
6656

67-
# checksum:
68-
# name_template: '{{.ProjectName}}_checksums.txt'
57+
checksum:
58+
name_template: checksums.txt
6959

70-
# snapshot:
71-
# name_template: "{{ incpatch .Version }}-next"
60+
snapshot:
61+
name_template: "{{ incpatch .Version }}-next"
7262

7363
changelog:
7464
sort: asc

go/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/krzko/opentelemetry-shell
2+
3+
go 1.18

go/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Print("Came for the scripts, stayed for goreleaser")
7+
}

0 commit comments

Comments
 (0)