maintain api
diff --git a/Makefile b/Makefile
index 0fa8ac9..e7440a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
GLIDE_GO_EXECUTABLE ?= go
DIST_DIRS := find * -type d -exec
VERSION := $(shell git describe --tags)
-VERSION_INCODE = $(shell perl -ne '/^const Version.*"([^"]+)".*$$/ && print "v$$1\n"' version.go)
+VERSION_INCODE = $(shell perl -ne '/^const version.*"([^"]+)".*$$/ && print "v$$1\n"' glide.go)
VERSION_INCHANGELOG = $(shell perl -ne '/^\# Release (\d+(\.\d+)+) / && print "$$1\n"' CHANGELOG.md | head -n1)
build:
@@ -51,8 +51,8 @@
elif [ "$(VERSION_INCODE)" = "v$(VERSION_INCHANGELOG)-dev" ]; then \
echo "glide (development): $(VERSION_INCHANGELOG)"; \
else \
- echo "Version number in version.go does not match CHANGELOG.md"; \
- echo "version.go: $(VERSION_INCODE)"; \
+ echo "Version number in glide.go does not match CHANGELOG.md"; \
+ echo "glide.go: $(VERSION_INCODE)"; \
echo "CHANGELOG : $(VERSION_INCHANGELOG)"; \
exit 1; \
fi
diff --git a/glide.go b/glide.go
index 38c37a8..b0eac41 100644
--- a/glide.go
+++ b/glide.go
@@ -34,6 +34,8 @@
"os"
)
+const version = "0.13.0-dev"
+
const usage = `Vendor Package Management for your Go projects.
Each project should have a 'glide.yaml' file in the project directory. Files
@@ -58,7 +60,7 @@
app := cli.NewApp()
app.Name = "glide"
app.Usage = usage
- app.Version = Version
+ app.Version = version
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "yaml, y",
diff --git a/version.go b/version.go
deleted file mode 100644
index d188ff4..0000000
--- a/version.go
+++ /dev/null
@@ -1,4 +0,0 @@
-package main
-
-// Version is the current version of Glide
-const Version = "0.13.0-dev"