Skip to content

Commit

Permalink
bump version (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez authored Jul 23, 2024
1 parent ef840b4 commit 54a85d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nimble.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.14.2"
version = "0.16.0"
author = "Dominik Picheta"
description = "Nim package manager."
license = "BSD"
Expand Down
9 changes: 8 additions & 1 deletion src/nimblepkg/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ type

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

proc getVersionFromNimble(): string =
const content = staticRead("../../nimble.nimble")
for v in content.splitLines:
if v.startsWith("version"):
return v.split("=")[^1].strip(chars = {' ', '"'})
error("Failed to get version from nimble.nimble")

const
nimbleVersion* = "0.14.2"
nimbleVersion* = getVersionFromNimble()
nimblePackagesDirName* = "pkgs2"
nimblePackagesLinksDirName* ="links"
nimbleBinariesDirName* = "bin"
Expand Down

0 comments on commit 54a85d4

Please sign in to comment.