Skip to content

Commit 2f204d3

Browse files
Work around AssemblyVersion limitations
1 parent 95df50d commit 2f204d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist-lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ function assembly-version {
4444
local RELEASE_PATTERN="^[0-9]+(\.[0-9]+){2,3}$"
4545
local NIGHTLY_PATTERN="^[0-9]+(\.[0-9]+){2,3}$"
4646
if [[ $1 =~ $RELEASE_PATTERN ]] ; then
47-
ASSEMBLY_VSN=$RABBIT_VSN.0
47+
# AssemblyVersion cannot contain arbitrary strings
48+
ASSEMBLY_VSN=$(echo $RABBIT_VSN | sed -e "s/milestone/80/g" -e "s/rc/90/g")
4849
elif [[ $1 =~ $NIGHTLY_PATTERN ]] ; then
4950
ASSEMBLY_VSN=$RABBIT_VSN
5051
else

0 commit comments

Comments
 (0)