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:
parent
432f12967b
commit
a2bf57f8e1
@ -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..."
|
||||
}
|
||||
|
@ -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..."
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
3
pipeline/env/env.go
vendored
@ -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..."
|
||||
}
|
||||
|
@ -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..."
|
||||
}
|
||||
|
@ -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..."
|
||||
}
|
||||
|
@ -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..."
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user