Skip to content

Commit

Permalink
closes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jul 29, 2021
1 parent d64b67c commit 37b495d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.2.5
======
+ it was previously not possible to adjust the order of impacts with
`SLIVAR_IMPACTFUL_ORDER`. This is now fixed. (#97)

v0.2.4
======
+ fix long-standing bug (#27) that would cause sigsegv in some cases
Expand Down
4 changes: 3 additions & 1 deletion src/slivarpkg/impact_order.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ proc adjustOrder*(order: string): TableRef[string, int] =

var default_order* = adjustOrder(order_x)
if getEnv("SLIVAR_IMPACTFUL_ORDER") != "":
default_order = adjustOrder(getEnv("SLIVAR_IMPACTFUL_ORDER"))
if not fileExists(getEnv("SLIVAR_IMPACTFUL_ORDER")):
raise newException(IOError, "[slivar] couldn't open file at:" & getEnv("SLIVAR_IMPACTFUL_ORDER") & " specified by env var 'SLIVAR_IMPACTFUL_ORDER'")
default_order = adjustOrder(getEnv("SLIVAR_IMPACTFUL_ORDER").readFile)
2 changes: 1 addition & 1 deletion src/slivarpkg/version.nim
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const slivarVersion* = "0.2.4"
const slivarVersion* = "0.2.5"
const slivarGitCommit* = staticExec("git rev-parse --verify HEAD")

0 comments on commit 37b495d

Please sign in to comment.