wangyoucao577 / go-release-action

Automatically publish Go binaries to Github Release Assets through Github Action.
https://github.com/marketplace/actions/go-release-binaries
MIT License
477 stars 74 forks source link

Failed to get vcs information #134

Open hoveychen opened 11 months ago

hoveychen commented 11 months ago

I'm using runtime/debug.ReadBuildInfo() to get the tagged name as the release binary version. However, the release by this action always generate the tagged name as "(devel)", which likely related to this issue.

Is there any way to fix it?

btw. Using go install github.com/{my project path}@latest works perfectly, while simply go build in the project path doesn't work.

wangyoucao577 commented 2 months ago

@hoveychen You may need to do something like this: https://github.com/wangyoucao577/medialib/blob/2bd156e3688330d28d746107d80034ec389042d1/.github/workflows/release.yml#L32