Set development version v0.13.0-dev

This commit is contained in:
Hector Sanjuan 2020-05-19 10:08:09 +02:00
parent 6b25d6fd3e
commit f213fe3dfa
No known key found for this signature in database
GPG Key ID: 5C5518D5765D8A12
3 changed files with 24 additions and 8 deletions

View File

@ -28,7 +28,7 @@ const programName = `ipfs-cluster-ctl`
// Version is the cluster-ctl tool version. It should match
// the IPFS cluster's version
const Version = "0.13.0"
const Version = "0.13.0-dev"
var (
defaultHost = "/ip4/127.0.0.1/tcp/9094"

View File

@ -2,8 +2,7 @@
# Updates the Version variables, commits, tags and signs
set -e
set -x
set -eux
version="$1"
@ -15,10 +14,27 @@ fi
make clean
sed -i "s/Version = semver\.MustParse.*$/Version = semver.MustParse(\"$version\")/" version/version.go
sed -i "s/const Version.*$/const Version = \"$version\"/" cmd/ipfs-cluster-ctl/main.go
git commit -S -a -m "Release $version"
lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' | tail -n 1`
git add version/version.go cmd/ipfs-cluster-ctl/main.go
# Dev versions, just commit
if [[ "$version" == *"-dev" ]]; then
git commit -S -m "Set development version v${version}"
exit 0
fi
# RC versions, commit and make a non-annotated tag.
if [[ "$version" == *"-dev" ]]; then
git commit -S -m "Release candidate v${version}"
git tag -s "v${version}"
exit 0
fi
# Actual releases, commit and make an annotated tag with all the commits
# since the last.
git commit -S -m "Release v${version}"
lastver=`git describe`
echo "Tag for Release ${version}" > tag_annotation
echo >> tag_annotation
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation
git tag -a -s -F tag_annotation v$version
rm tag_annotation
git tag -a -s -F tag_annotation "v${version}"
rm tag_annotation

View File

@ -6,7 +6,7 @@ import (
)
// Version is the current cluster version.
var Version = semver.MustParse("0.13.0")
var Version = semver.MustParse("0.13.0-dev")
// RPCProtocol is protocol handler used to send libp2p-rpc messages between
// cluster peers. All peers in the cluster need to speak the same protocol