Merge pull request #2993 from ijc/pkg-build-no-release

pkg: build: do not infer a release if not pushing
This commit is contained in:
Ian Campbell 2018-04-06 16:28:06 +01:00 committed by GitHub
commit 12c8195064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ func (p Pkg) Build(bos ...BuildOpt) error {
return fmt.Errorf("Unknown arch %q", arch)
}
if p.git != nil && bo.release == "" {
if p.git != nil && bo.push && bo.release == "" {
r, err := p.git.commitTag("HEAD")
if err != nil {
return err