diff --git a/.gitignore b/.gitignore index f3f1b68..6c3b2b9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ dist/ *.sh sponge vendor/ +dist/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 221498a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,21 +0,0 @@ -image: golang:latest - -stages: - - validate - - build - -fmt: - stage: validate - script: - - gofmt -l -s -e . - - exit $(gofmt -l -s -e . | wc -l) - -vet: - stage: validate - script: - - go vet -composites=false ./... - -test: - stage: validate - script: - - go test -race -v ./... diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..6f8696c --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,32 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin +archives: + - replacements: + darwin: Darwin + 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:' diff --git a/README.md b/README.md index 63616fa..2be5d56 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # sponge -[![GoDoc](https://godoc.org/gitlab.com/tslocum/sponge?status.svg)](https://godoc.org/gitlab.com/tslocum/sponge) -[![CI status](https://gitlab.com/tslocum/sponge/badges/master/pipeline.svg)](https://gitlab.com/tslocum/sponge/commits/master) -[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space) +This repository was forked from [this repository](https://code.rocketnine.space/tslocum/sponge) Soaks up all input from stdin and writes it to a file or stdout. Pipelines 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. ```go get gitlab.com/tslocum/sponge``` +Or download the binary in the [release page](https://github.com/flinkstech/sponge/releases) + ## Usage ```sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout``` ## Support -Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge/issues). +Please share issues and suggestions [here](https://github.com/flinkstech/sponge/issues). ## Credits -sponge was originally written in C by Tollef Fog Heen. +sponge was originally written in C by Tollef Fog Heen. + +This Go port was initially written by [Trevor Slocum](https://code.rocketnine.space/tslocum/) \ No newline at end of file diff --git a/go.mod b/go.mod index 735b128..df4427f 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module gitlab.com/tslocum/sponge -go 1.12 +go 1.18