Skip to content

Commit 54a85d4

Browse files
authored
bump version (#1247)
1 parent ef840b4 commit 54a85d4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

nimble.nimble

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.14.2"
3+
version = "0.16.0"
44
author = "Dominik Picheta"
55
description = "Nim package manager."
66
license = "BSD"

src/nimblepkg/common.nim

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ type
2121

2222
ProcessOutput* = tuple[output: string, exitCode: int]
2323

24+
proc getVersionFromNimble(): string =
25+
const content = staticRead("../../nimble.nimble")
26+
for v in content.splitLines:
27+
if v.startsWith("version"):
28+
return v.split("=")[^1].strip(chars = {' ', '"'})
29+
error("Failed to get version from nimble.nimble")
30+
2431
const
25-
nimbleVersion* = "0.14.2"
32+
nimbleVersion* = getVersionFromNimble()
2633
nimblePackagesDirName* = "pkgs2"
2734
nimblePackagesLinksDirName* ="links"
2835
nimbleBinariesDirName* = "bin"

0 commit comments

Comments
 (0)