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:
parent
c3a6c3f40d
commit
a6965e6272
3
Makefile
3
Makefile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user