mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
gofmt -s
This commit is contained in:
parent
bf73e57c06
commit
9a67478c0d
@ -1,8 +1,8 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFixConfig(t *testing.T) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCurrentTag(t *testing.T) {
|
||||
|
@ -30,9 +30,9 @@ func (Pipe) Work(config config.ProjectConfig) error {
|
||||
|
||||
owner, repo := split.OnSlash(config.Repo)
|
||||
r, _, err := client.Repositories.CreateRelease(owner, repo, &github.RepositoryRelease{
|
||||
Name: github.String(config.Git.CurrentTag),
|
||||
TagName: github.String(config.Git.CurrentTag),
|
||||
Body: github.String(description(config.Git.Diff)),
|
||||
Name: github.String(config.Git.CurrentTag),
|
||||
TagName: github.String(config.Git.CurrentTag),
|
||||
Body: github.String(description(config.Git.Diff)),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -1,9 +1,9 @@
|
||||
package release
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"fmt"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDescription(t *testing.T) {
|
||||
|
@ -1,13 +1,13 @@
|
||||
package uname
|
||||
|
||||
var mapping = map[string]string{
|
||||
"darwin": "Darwin",
|
||||
"linux": "Linux",
|
||||
"freebsd":"FreeBSD",
|
||||
"openbsd":"OpenBSD",
|
||||
"netbsd": "NetBSD",
|
||||
"386": "i386",
|
||||
"amd64": "x86_64",
|
||||
"darwin": "Darwin",
|
||||
"linux": "Linux",
|
||||
"freebsd": "FreeBSD",
|
||||
"openbsd": "OpenBSD",
|
||||
"netbsd": "NetBSD",
|
||||
"386": "i386",
|
||||
"amd64": "x86_64",
|
||||
}
|
||||
|
||||
func FromGo(s string) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user