Jvlegod/go2spec:fix-pseudo-version-commit-id
master
修复 go2spec 在指定 git commit 打包时生成错误 tarball 文件名的问题
修复前输出中会包含换行和 %define commit_id
$ ls /tmp/go2spec-output-original-B1t0sk go-github-shopify-logrus-bugsnag 'go-github-shopify-logrus-bugsnag_0+git20260716.d55aa3c'$'\n''%define commit_id d55aa3c8353b164fb7e3bc0e0b3aa1b83b3a4fde.orig.tar.xz' $ ls /tmp/go2spec-output-fixed-kqwfBw go-github-shopify-logrus-bugsnag go-github-shopify-logrus-bugsnag_0+git20260716.d55aa3c.orig.tar.xz
其他spec的样式不变
github.com/Shopify/logrus-bugsnag
commit_id: d55aa3c8353b164fb7e3bc0e0b3aa1b83b3a4fde
go build -o /tmp/go2spec . mkdir -p /tmp/go2spec-repro-original cd /tmp/go2spec-repro-original /tmp/go2spec pack \ -git_revision d55aa3c8353b164fb7e3bc0e0b3aa1b83b3a4fde \ -type library \ github.com/Shopify/logrus-bugsnag
Signed-off-by: Jvle <keke.oerv@isrc.iscas.cn>
No dependencies set.
The note is not visible to the blocked user.
修复 go2spec 在指定 git commit 打包时生成错误 tarball 文件名的问题
修复前输出中会包含换行和 %define commit_id
其他spec的样式不变
样例来源
github.com/Shopify/logrus-bugsnag
commit_id: d55aa3c8353b164fb7e3bc0e0b3aa1b83b3a4fde
测试方法