nimble icon indicating copy to clipboard operation
nimble copied to clipboard

Build can fail depending on the ordering of dependencies

Open SolitudeSF opened this issue 3 years ago • 0 comments

test.nimble

# Package
version       = "0.1.0"
author        = "SolitudeSF"
description   = "A new awesome nimble package"
license       = "MIT"
srcDir        = "src"
bin           = @["test"]
# Dependencies
requires "nim >= 1.9.1", "jsony", "uuids"

src/test.nim

import jsony

nimble build fails with src/test.nim(1, 8) Error: cannot open file: jsony replacing the requires line in nimble file with requires "nim >= 1.9.1", "uuids", "jsony" fixes the issue

upon further investigation, if you also import uuids, build fails with uuids.nim(2, 8) Error: cannot open file: isaac which is a direct dependency of uuids.

looks like last evaluated dependecy doesnt get added to compilers path.

SolitudeSF avatar Dec 28 '22 22:12 SolitudeSF