From 2c3ae3137f3c9cb48134285bd4a47186fa51f0e8 Mon Sep 17 00:00:00 2001 From: tersec Date: Sat, 10 Jun 2023 05:15:16 +0000 Subject: [PATCH] make nimble file consistent with CI setup (#147) --- websock.nimble | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/websock.nimble b/websock.nimble index 6fdff83..6d87bfe 100644 --- a/websock.nimble +++ b/websock.nimble @@ -1,5 +1,5 @@ ## nim-websock -## Copyright (c) 2021 Status Research & Development GmbH +## Copyright (c) 2023 Status Research & Development GmbH ## Licensed under either of ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -14,7 +14,7 @@ description = "WS protocol implementation" license = "MIT" skipDirs = @["examples", "tests"] -requires "nim >= 1.2.0" # nimble will fail to install nim-websock if we are using 1.2.6 here +requires "nim >= 1.6.0" requires "chronos >= 3.0.0" requires "httputils >= 0.2.0" requires "chronicles >= 0.10.2" @@ -26,14 +26,9 @@ requires "zlib" task test, "run tests": let envNimflags = getEnv("NIMFLAGS") - styleCheckStyle = - if (NimMajor, NimMinor) < (1, 6): - "hint" - else: - "error" nimFlags = envNimFlags & " --verbosity:0 --hints:off --hint:Name:on " & - "--styleCheck:usages --styleCheck:" & styleCheckStyle & + "--styleCheck:usages --styleCheck:error" & " -d:chronosStrictException" # dont't need to run it, only want to test if it is compileable