From 01da6264ed88389f6a43c3d227e90525c4c9356e Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 11 May 2017 13:34:29 -0300 Subject: [PATCH] checksum: filename 2spaces checksum instead of tab closes #233 --- pipeline/checksums/checksums.go | 2 +- pipeline/checksums/checksums_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/checksums/checksums.go b/pipeline/checksums/checksums.go index df8bd8c42..1a19d0c2b 100644 --- a/pipeline/checksums/checksums.go +++ b/pipeline/checksums/checksums.go @@ -55,6 +55,6 @@ func checksums(ctx *context.Context, file *os.File, name string) error { if err != nil { return err } - _, err = file.WriteString(fmt.Sprintf("%v\t%v\n", sha, name)) + _, err = file.WriteString(fmt.Sprintf("%v %v\n", sha, name)) return err } diff --git a/pipeline/checksums/checksums_test.go b/pipeline/checksums/checksums_test.go index d589e5bd2..b050d9946 100644 --- a/pipeline/checksums/checksums_test.go +++ b/pipeline/checksums/checksums_test.go @@ -35,7 +35,7 @@ func TestPipe(t *testing.T) { assert.Contains(ctx.Artifacts, checksums, binary) bts, err := ioutil.ReadFile(filepath.Join(folder, checksums)) assert.NoError(err) - assert.Equal(string(bts), "61d034473102d7dac305902770471fd50f4c5b26f6831a56dd90b5184b3c30fc binary\n") + assert.Equal(string(bts), "61d034473102d7dac305902770471fd50f4c5b26f6831a56dd90b5184b3c30fc binary\n") } func TestPipeFileNotExist(t *testing.T) {