Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
spanner-change-streams-tail
dist/*
28 changes: 28 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Mac
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#################################################
GOOS := $(shell go env GOOS)
GOARCH := $(shell go env GOARCH)
GOFILES := $(shell ls *.go |grep -v test|grep -v spanner-change-streams-tail)
GOBUILD := GOOS=$(GOOS) GOARCH=$(GOARCH) go build
MAINFILE := spanner-change-streams-tail.go


#################################################
default: deps test bin
localbuild: deps test releaser

deps:
go get

releaser:
goreleaser build --snapshot --rm-dist --single-target

test:
go test -v ./...

bin:
$(GOBUILD) $(MAINFILE) $(GOFILES)

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ A handy tool to tail [Cloud Spanner Change Streams](https://cloud.google.com/spa
go install github.com/cloudspannerecosystem/spanner-change-streams-tail@latest
```

## Building

```
make
```

## Usage

```
Expand Down
File renamed without changes.