Skip to content

Install dependencies of build script. #2100

@nojaf

Description

@nojaf

Description

I'd like a way to download dependencies of the build script without invoking anything else.

Scenario:

I want to add a new module nuget Fake.JavaScript.Npm.
Before I can add open Fake.JavaScript I need to have that dependency installed.

Repro steps

Please provide the steps required to reproduce the problem

  1. Delete build.fsx.lock file

  2. Run fake.exe run build.fsx --help

With --help no target is invoked it does contain side effects however.

Expected behavior

I'd be nice if there were a fake.exe install to fetch the new dependency.

Possible Solutions

Option fake install

Similar to paket install. Open points: Would it write/update the intellisense file -> probably yes

Option fake update

Similar to paket update. Open points: Would it write/update the intellisense file -> probably yes

Option fake paket <..>

Will execute paket <..> (internally). And write/update intellisense files if needed?

Option fake compile

Will execute something similar to paket install (ie. add/download new packages), update intellisense files and compiling the script (without running it). fake run should be fast and cached afterwards.

This option could have additional parameters in the future:

  • fake compile --update to update dependencies similar to deleting the lockfile and paket update
  • fake compile --no-install to only compile and without paket install

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions