Pull request: all: fix snapshot release version length
Merge in DNS/adguard-home from 2410-fix-snapshot to master
Updates #2410.
Updates #2412.
Squashed commit of the following:
commit 6718e018533abbd02ccefdb5a0030655d5e8012a
Merge: ba5fc4c58 e02308dd4
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu Dec 10 14:36:19 2020 +0300
Merge branch 'master' into 2410-fix-snapshot
commit ba5fc4c58b1f2be0b3e6fbbeea04f70b506633f2
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date: Thu Dec 10 13:12:12 2020 +0300
all: fix snapshot release version length
This commit is contained in:
parent
e02308dd42
commit
e2738fdf3f
|
@ -105,3 +105,11 @@
|
||||||
|
|
||||||
'checksum':
|
'checksum':
|
||||||
'name_template': 'checksums.txt'
|
'name_template': 'checksums.txt'
|
||||||
|
|
||||||
|
'snapshot':
|
||||||
|
# TODO(a.garipov): A temporary solution to trim the prerelease versions.
|
||||||
|
# A real solution would consist of making a better versioning scheme that also
|
||||||
|
# doesn't break SemVer or Snapcraft.
|
||||||
|
#
|
||||||
|
# See https://github.com/AdguardTeam/AdGuardHome/issues/2412.
|
||||||
|
'name_template': '{{ slice .Tag 0 8 }}-SNAPSHOT-{{ .ShortCommit }}'
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -66,7 +66,9 @@ endif
|
||||||
|
|
||||||
# Version properties
|
# Version properties
|
||||||
COMMIT=$(shell git rev-parse --short HEAD)
|
COMMIT=$(shell git rev-parse --short HEAD)
|
||||||
TAG_NAME=$(shell git describe --abbrev=0)
|
# TODO(a.garipov): The cut call is a temporary solution to trim
|
||||||
|
# prerelease versions. See the comment in .goreleaser.yml.
|
||||||
|
TAG_NAME=$(shell git describe --abbrev=0 | cut -c 1-8)
|
||||||
RELEASE_VERSION=$(TAG_NAME)
|
RELEASE_VERSION=$(TAG_NAME)
|
||||||
SNAPSHOT_VERSION=$(RELEASE_VERSION)-SNAPSHOT-$(COMMIT)
|
SNAPSHOT_VERSION=$(RELEASE_VERSION)-SNAPSHOT-$(COMMIT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue