mirror of https://gitee.com/answerdev/answer.git
update goreleaser
This commit is contained in:
parent
f93beb51ca
commit
9b7fdf77f1
|
@ -15,7 +15,7 @@ builds:
|
||||||
- id: build
|
- id: build
|
||||||
main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
ldflags: -s -w -X github.com/answerdev/answer/cmd.Version={{.Version}} -X github.com/answerdev/answer/cmd.Revision={{.ShortCommit}} -X github.com/answerdev/answer/cmd.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
flags: -v
|
flags: -v
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
|
@ -26,7 +26,7 @@ builds:
|
||||||
- id: build-windows
|
- id: build-windows
|
||||||
main: ./cmd/answer/.
|
main: ./cmd/answer/.
|
||||||
binary: answer
|
binary: answer
|
||||||
ldflags: -s -w -X main.Version={{.Version}} -X main.Revision={{.ShortCommit}} -X main.Time={{.Date}} -X main.BuildUser=goreleaser
|
ldflags: -s -w -X github.com/answerdev/answer/cmd.Version={{.Version}} -X github.com/answerdev/answer/cmd.Revision={{.ShortCommit}} -X github.com/answerdev/answer/cmd.Time={{.Date}} -X main.BuildUser=goreleaser
|
||||||
flags: -v
|
flags: -v
|
||||||
goos:
|
goos:
|
||||||
- windows
|
- windows
|
||||||
|
|
|
@ -448,7 +448,6 @@ func (cs *CommentService) GetCommentPersonalWithPage(ctx context.Context, req *s
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
} else {
|
} else {
|
||||||
spew.Dump("==", objInfo)
|
|
||||||
commentResp.ObjectType = objInfo.ObjectType
|
commentResp.ObjectType = objInfo.ObjectType
|
||||||
commentResp.Title = objInfo.Title
|
commentResp.Title = objInfo.Title
|
||||||
commentResp.UrlTitle = htmltext.UrlTitle(objInfo.Title)
|
commentResp.UrlTitle = htmltext.UrlTitle(objInfo.Title)
|
||||||
|
|
|
@ -64,6 +64,5 @@ func TestUrlTitle(t *testing.T) {
|
||||||
for _, title := range list {
|
for _, title := range list {
|
||||||
formatTitle := UrlTitle(title)
|
formatTitle := UrlTitle(title)
|
||||||
spew.Dump(formatTitle)
|
spew.Dump(formatTitle)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue