1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

checksum: filename 2spaces checksum instead of tab

closes #233
This commit is contained in:
Carlos Alexandro Becker 2017-05-11 13:34:29 -03:00
parent 8ef9998866
commit 01da6264ed
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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) {