Skip to content

Commit 1eb8c42

Browse files
author
romnnn
committed
track versions
1 parent b0ad3fc commit 1eb8c42

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 0.1.5
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:cmd/mongoimport/mongoimport.go]
7+
search = const Version \= "{current_version}"
8+
replace = {new_version}

cmd/mongoimport/mongoimport.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import (
1212
// Rev is set on build time to the git HEAD
1313
var Rev = ""
1414

15+
// Version is incremented using bump2version
16+
const Version = "0.1.5"
17+
1518
var (
1619
mongoConnectionOptions = []cli.Flag{
1720
&cli.StringFlag{

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.13
55
require (
66
github.com/JensRantil/go-csv v0.0.0-20191126162552-aff1990e884a
77
github.com/docker/go-connections v0.4.0
8+
github.com/fzipp/gocyclo v0.0.0-20150627053110-6acd4345c835 // indirect
89
github.com/gosuri/uilive v0.0.4 // indirect
910
github.com/gosuri/uiprogress v0.0.1
1011
github.com/kennygrant/sanitize v1.2.4

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk
3636
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
3737
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
3838
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
39+
github.com/fzipp/gocyclo v0.0.0-20150627053110-6acd4345c835 h1:roDmqJ4Qes7hrDOsWsMCce0vQHz3xiMPjJ9m4c2eeNs=
40+
github.com/fzipp/gocyclo v0.0.0-20150627053110-6acd4345c835/go.mod h1:BjL/N0+C+j9uNX+1xcNuM9vdSIcXCZrQZUYbXOFbgN8=
3941
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
4042
github.com/gin-gonic/gin v1.5.0/go.mod h1:Nd6IXA8m5kNZdNEHMBd93KT+mdY3+bewLgRvmCsR2Do=
4143
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=

0 commit comments

Comments
 (0)