1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00

Merge remote-tracking branch 'origin/master' into zip

This commit is contained in:
Carlos Alexandro Becker 2017-01-09 12:42:46 -02:00
commit b786217025
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -83,6 +83,7 @@ func (Pipe) Run(config config.ProjectConfig) error {
)
return err
}
func sha(client *github.Client, owner, repo, name string, out bytes.Buffer) (*string, error) {
file, _, _, err := client.Repositories.GetContents(
owner, repo, name, &github.RepositoryContentGetOptions{},
@ -90,7 +91,7 @@ func sha(client *github.Client, owner, repo, name string, out bytes.Buffer) (*st
if err == nil {
return file.SHA, err
}
return github.String(fmt.Sprintf("%s", sha256.Sum256(out.Bytes()))), err
return github.String(fmt.Sprintf("%s", sha256.Sum256(out.Bytes()))), nil
}
func buildFormulae(config config.ProjectConfig, client *github.Client) (bytes.Buffer, error) {