-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install dependencies of build script. #2100
Comments
After discussing what the CLI should look like ( |
Hi @matthid , thanks for the approval. |
That would be an even bigger change and probably be seen sceptical by some users. It would need a change similar to fsprojects/Paket#3338 before we can start here |
If I understand your aim is to perform the compile stage of running fake. Without running your script. So why not use a similar syntax to ’fake run <script>‘ and do ’fake compile <script>‘ |
An additional thought I had with @TheAngryByrd tonight would be to package up that compiled version of the fake-script dll into a single deployable artifact somehow. Ideally a .net core static-linked exe, but that might not be feasible. |
@baronfel Yes I thought about that as well, this is useful especially for release pipelines, however this is a separate issue imho |
@BlythMeister I like |
@matthid just to be on the safe side, what does |
@nojaf Yes it would do everything, load all deps, generate intellisense files and compile the script (cached behind the scenes), such that everything is ready for |
And it really would be a |
Ok, would you mind writing out a small summary of all the commands. What each should do? |
Imho the commands are different ways to solve the problem of this issue. I'll update the first post |
Hope the suggestions make more sense now and capture the current discussions |
Anyone care to send a PR for this? (Currently I'd probably favor |
There has not been any activity in this issue for the last 3 months so it will be closed in 14 days if there is no activity. |
Related: #1783 |
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
Delete build.fsx.lock file
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 yesOption
fake update
Similar to
paket update
. Open points: Would it write/update the intellisense file -> probably yesOption
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 andpaket update
fake compile --no-install
to only compile and withoutpaket install
The text was updated successfully, but these errors were encountered: