1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

Fixing some linter errors

This commit is contained in:
Jorin Vogel 2017-01-14 19:41:32 +01:00
parent 432f12967b
commit a2bf57f8e1
8 changed files with 14 additions and 12 deletions

View File

@ -40,7 +40,7 @@ type templateData struct {
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Creating homebrew formulae..."
}

View File

@ -14,7 +14,7 @@ import (
// Pipe for build
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Building..."
}

View File

@ -15,7 +15,7 @@ import (
// Pipe for compress
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Creating archives..."
}
@ -32,6 +32,7 @@ func (Pipe) Run(ctx *context.Context) error {
return g.Wait()
}
// Archive represents a compression archive files from disk can be written to.
type Archive interface {
Close() error
Add(name, path string) error

View File

@ -13,13 +13,13 @@ var defaultFiles = []string{"licence", "license", "readme", "changelog"}
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Setting defaults..."
}
// Run the pipe
func (Pipe) Run(ctx *context.Context) (err error) {
func (Pipe) Run(ctx *context.Context) error {
if ctx.Config.Repo == "" {
repo, err := remoteRepo()
ctx.Config.Repo = repo
@ -61,14 +61,14 @@ func (Pipe) Run(ctx *context.Context) (err error) {
}
}
if len(ctx.Config.Files) != 0 {
return
return nil
}
files, err := findFiles()
if err != nil {
return
return err
}
ctx.Config.Files = files
return
return nil
}
func findFiles() (files []string, err error) {

3
pipeline/env/env.go vendored
View File

@ -7,12 +7,13 @@ import (
"github.com/goreleaser/releaser/context"
)
// ErrMissingToken indicates an error when GITHUB_TOKEN is missing in the environment
var ErrMissingToken = errors.New("Missing GITHUB_TOKEN")
// Pipe for env
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Loading data from environment variables..."
}

View File

@ -5,7 +5,7 @@ import "github.com/goreleaser/releaser/context"
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Gathering Git data..."
}

View File

@ -14,7 +14,7 @@ import (
// Pipe for github release
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Releasing to GitHub..."
}

View File

@ -9,7 +9,7 @@ import (
// Pipe for brew deployment
type Pipe struct{}
// Name of the pipe
// Description of the pipe
func (Pipe) Description() string {
return "Filling repositories data..."
}