mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+csvdiff
This commit is contained in:
parent
43662c24d6
commit
d2ae207140
3 changed files with 31 additions and 0 deletions
2
projects/github.com/aswinkarthik/csvdiff/file1.csv
Normal file
2
projects/github.com/aswinkarthik/csvdiff/file1.csv
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
tool,description
|
||||||
|
tea.xyz,is great
|
|
2
projects/github.com/aswinkarthik/csvdiff/file2.csv
Normal file
2
projects/github.com/aswinkarthik/csvdiff/file2.csv
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
tool,description
|
||||||
|
tea.xyz,is the greatest
|
|
27
projects/github.com/aswinkarthik/csvdiff/package.yml
Normal file
27
projects/github.com/aswinkarthik/csvdiff/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/aswinkarthik/csvdiff/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: aswinkarthik/csvdiff # reads github tags but only tags of releases (this is usually what you want)
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: "*"
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.version={{version}}
|
||||||
|
script: |
|
||||||
|
go build -ldflags "$LDFLAGS" -o csvdiff main.go
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv csvdiff "{{ prefix }}"/bin
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/csvdiff
|
||||||
|
|
||||||
|
test:
|
||||||
|
fixture: tea.xyz,is the greatest,MODIFIED
|
||||||
|
script: |
|
||||||
|
test "$(csvdiff file1.csv file2.csv --format rowmark)" = "$(cat $FIXTURE)"
|
Loading…
Reference in a new issue