We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef840b4 commit 54a85d4Copy full SHA for 54a85d4
nimble.nimble
@@ -1,6 +1,6 @@
1
# Package
2
3
-version = "0.14.2"
+version = "0.16.0"
4
author = "Dominik Picheta"
5
description = "Nim package manager."
6
license = "BSD"
src/nimblepkg/common.nim
@@ -21,8 +21,15 @@ type
21
22
ProcessOutput* = tuple[output: string, exitCode: int]
23
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
+
31
const
- nimbleVersion* = "0.14.2"
32
+ nimbleVersion* = getVersionFromNimble()
33
nimblePackagesDirName* = "pkgs2"
34
nimblePackagesLinksDirName* ="links"
35
nimbleBinariesDirName* = "bin"
0 commit comments