1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +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

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