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

fix: remove dep on stringer

This commit is contained in:
Carlos Alexandro Becker 2018-09-15 18:53:59 -03:00 committed by Carlos Alexandro Becker
parent c3a6c3f40d
commit a6965e6272
2 changed files with 20 additions and 3 deletions

View File

@ -7,8 +7,6 @@ export PATH := ./bin:$(PATH)
# Install all the build and lint dependencies
setup:
go get -u golang.org/x/tools/cmd/stringer
go get -u golang.org/x/tools/cmd/cover
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
curl -sfL https://install.goreleaser.com/github.com/caarlos0/bandep.sh | sh
@ -55,7 +53,6 @@ ci: build test lint
# Build a beta version of goreleaser
build:
go generate ./...
go build
.PHONY: build

View File

@ -32,6 +32,26 @@ const (
Signature
)
func (t Type) String() string {
switch t {
case UploadableArchive:
return "Archive"
case UploadableBinary:
return "Binary"
case Binary:
return "Binary"
case LinuxPackage:
return "LinuxPackage"
case DockerImage:
return "DockerImage"
case Checksum:
return "Checksum"
case Signature:
return "Signature"
}
return "unknown"
}
// Artifact represents an artifact and its relevant info
type Artifact struct {
Name string