Set development version v0.13.0-dev
This commit is contained in:
parent
6b25d6fd3e
commit
f213fe3dfa
|
@ -28,7 +28,7 @@ const programName = `ipfs-cluster-ctl`
|
||||||
|
|
||||||
// Version is the cluster-ctl tool version. It should match
|
// Version is the cluster-ctl tool version. It should match
|
||||||
// the IPFS cluster's version
|
// the IPFS cluster's version
|
||||||
const Version = "0.13.0"
|
const Version = "0.13.0-dev"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
defaultHost = "/ip4/127.0.0.1/tcp/9094"
|
defaultHost = "/ip4/127.0.0.1/tcp/9094"
|
||||||
|
|
28
release.sh
28
release.sh
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
# Updates the Version variables, commits, tags and signs
|
# Updates the Version variables, commits, tags and signs
|
||||||
|
|
||||||
set -e
|
set -eux
|
||||||
set -x
|
|
||||||
|
|
||||||
version="$1"
|
version="$1"
|
||||||
|
|
||||||
|
@ -15,10 +14,27 @@ fi
|
||||||
make clean
|
make clean
|
||||||
sed -i "s/Version = semver\.MustParse.*$/Version = semver.MustParse(\"$version\")/" version/version.go
|
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
|
sed -i "s/const Version.*$/const Version = \"$version\"/" cmd/ipfs-cluster-ctl/main.go
|
||||||
git commit -S -a -m "Release $version"
|
git add version/version.go cmd/ipfs-cluster-ctl/main.go
|
||||||
lastver=`git tag -l | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+$' | tail -n 1`
|
|
||||||
|
# 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 for Release ${version}" > tag_annotation
|
||||||
echo >> tag_annotation
|
echo >> tag_annotation
|
||||||
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation
|
git log --pretty=oneline ${lastver}..HEAD >> tag_annotation
|
||||||
git tag -a -s -F tag_annotation v$version
|
git tag -a -s -F tag_annotation "v${version}"
|
||||||
rm tag_annotation
|
rm tag_annotation
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version is the current cluster version.
|
// 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
|
// RPCProtocol is protocol handler used to send libp2p-rpc messages between
|
||||||
// cluster peers. All peers in the cluster need to speak the same protocol
|
// cluster peers. All peers in the cluster need to speak the same protocol
|
||||||
|
|
Loading…
Reference in New Issue
Block a user