Skip to content

instead of copyDir(fustion, stdlib/lib), update --path #25

@timotheecour

Description

@timotheecour

@alaviss
continuation of #22 (comment) to avoid mingling unrelated topics

instead of copyDir(distDir / "fusion" / "src" / "fusion", "lib" / "fusion"), we should probably use the usual nimble logic which allows adding import dirs to nim's --path, so that nimble develop fusion works as intended (NIMBLE_DIR=customdir can always be used during bootstrap to avoid user's environment messing up with bootstrap)

I decided against this and make use of copyDir simply because nimble does not support "system-installed" dependencies. Also it's widely incompatible with how Linux distributions package Nim, so unless we got those sorted out copying is the foolproof way.

  • wouldn't NIMBLE_DIR=pathto/Nim/dist work?
  • if not, why not add --path:dist/fusion/src to Nim/config/nim.cfg ?
    if the sources are there it'll pick them up, else, it will be a noop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions