Switch to the new style of importing vendor packages
In preparation of our migration to the new Nimble-based setup and [nim-workspace][1], we switch to a new model where the vendor packages are no longer imported through a locally generated Nimble dir, but rather through an auto-generated `nimbus-build-system.paths` file that features regular `--path:` statements. This file will be imported only within the nimbus-build-system environment in order to avoid any unwanted interference in working copies based on the new Nimble setup. [1]: https://github.com/status-im/nim-workspace
This commit is contained in:
parent
113de71252
commit
4b83208a19
|
@ -33,3 +33,7 @@ nimcache
|
||||||
# Nimble user files
|
# Nimble user files
|
||||||
nimble.develop
|
nimble.develop
|
||||||
nimble.paths
|
nimble.paths
|
||||||
|
|
||||||
|
# nimbus-build-system files
|
||||||
|
nimbus-build-system.paths
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
import strutils
|
import strutils
|
||||||
|
|
||||||
|
--noNimblePath
|
||||||
|
|
||||||
|
if getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
|
||||||
|
system.fileExists("nimbus-build-system.paths"):
|
||||||
|
include "nimbus-build-system.paths"
|
||||||
|
|
||||||
if defined(release):
|
if defined(release):
|
||||||
switch("nimcache", "nimcache/release/$projectName")
|
switch("nimcache", "nimcache/release/$projectName")
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a8ab2dc39aad4d69ba3be72868772d851b4b9741
|
Subproject commit daff2b46700894a1771241dafcf26ee31bb2fdf5
|
Loading…
Reference in New Issue