Skip to content

Commit 2f0d12c

Browse files
author
Arthur Legrand
committed
Update to go 1.18 and sets up GoReleaser to easily download binary with curl
1 parent 2995123 commit 2f0d12c

File tree

5 files changed

+41
-27
lines changed

5 files changed

+41
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
*.sh
44
sponge
55
vendor/
6+
dist/

.gitlab-ci.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.goreleaser.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
archives:
17+
- replacements:
18+
darwin: Darwin
19+
linux: Linux
20+
windows: Windows
21+
386: i386
22+
amd64: x86_64
23+
checksum:
24+
name_template: 'checksums.txt'
25+
snapshot:
26+
name_template: "{{ incpatch .Version }}-next"
27+
changelog:
28+
sort: asc
29+
filters:
30+
exclude:
31+
- '^docs:'
32+
- '^test:'

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# sponge
2-
[![GoDoc](https://godoc.org/gitlab.com/tslocum/sponge?status.svg)](https://godoc.org/gitlab.com/tslocum/sponge)
3-
[![CI status](https://gitlab.com/tslocum/sponge/badges/master/pipeline.svg)](https://gitlab.com/tslocum/sponge/commits/master)
4-
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
2+
This repository was forked from [this repository](https://code.rocketnine.space/tslocum/sponge)
53

64
Soaks up all input from stdin and writes it to a file or stdout. Pipelines
75
reading from and writing to the same file may be safely constructed.
@@ -12,14 +10,18 @@ reading from and writing to the same file may be safely constructed.
1210

1311
```go get gitlab.com/tslocum/sponge```
1412

13+
Or download the binary in the [release page](https://github.com/flinkstech/sponge/releases)
14+
1515
## Usage
1616

1717
```sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout```
1818

1919
## Support
2020

21-
Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge/issues).
21+
Please share issues and suggestions [here](https://github.com/flinkstech/sponge/issues).
2222

2323
## Credits
2424

25-
sponge was originally written in C by Tollef Fog Heen.
25+
sponge was originally written in C by Tollef Fog Heen.
26+
27+
This Go port was initially written by [Trevor Slocum](https://code.rocketnine.space/tslocum/)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module gitlab.com/tslocum/sponge
22

3-
go 1.12
3+
go 1.18

0 commit comments

Comments
 (0)