moigagoo / norm

A Nim ORM for SQLite and Postgres
https://norm.nim.town
MIT License
378 stars 34 forks source link

#196 Put taskrequires blocks behind a when-block #197

Closed PhilippMDoerner closed 8 months ago

PhilippMDoerner commented 8 months ago

closes #196

taskRequires was introduced in the nimble version that comes with nim 2.0

Thus it can not be interpreted by nimble versions below that, i.e. used by nim 1.6. Thus using this in the nimble file breaks backwards compatibility with any package using norm under nim 1.6.

This when-block makes the taskRequires blocks only visible for nim versions whose nimble version can deal with them.

@moigagoo I'd want you to be aware of that thus I'd like your approval of the PR.