question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to specify dependency targets to skip at the CLI

See original GitHub issue

There are often times where I am developing a task at the end of a list of targets. During this temporary development I want to run the target frequently without running the targets it depends on. Naturally I comment out the .IsDependentOn for the task under development. However I’d strongly prefer to be able to specify -Target X -SkipTarget Y -SkipTarget Z or something similar. I don’t want to make any changes to the file on account of temporary development. This way I can commit as I make progress without forgetting to uncomment and recomment.

I’d also prefer not to build a hierarchy where Release depends on Test and ReleaseWithoutTest or introduce environment variables or any other kind of script boilerplate just for the sake of being able to temporarily skip a given target.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
petertiedemanncommented, Mar 22, 2017

I definitely think something like this needs to be supported. If you are running in a CI that naturally has pre-build, build, test and deploy phases, then you will typically want to single-target each of the corresponding tasks, while at the same time making it easy for local builds to run the whole thing with a single cmd.

3reactions
patriksvenssoncommented, Nov 8, 2016

I have no objection to this. Would however prefer --skiptask.

At the moment this, would have to be a semicolon (or similar) separated string since we don’t (at the moment) support multiple keys with the same name in the arguments.

So it would be something like:

> cake.exe --skip=foo;bar;qux;baz
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to skip one of the dependency file to not include while ...
I want to create a library skipping one of the dependency file not to include while creating the same. Eg:- liba.so: a.o b.o...
Read more >
Apache Maven Dependency Plugin – Usage
This goal is used to view the dependency hierarchy of the project currently being built. It will output the resolved tree of dependencies...
Read more >
Command-Line Reference
Executes a dependency graph query. run, Runs the specified target. shutdown, Stops the bazel server. sync, Syncs all ...
Read more >
File Dependencies: make
The commands that must be executed to construct the target from its dependencies. Rules may appear in any order. Except that the first...
Read more >
Targets and BUILD files
A target's dependencies determines which other first-party code and third-party requirements to include when building the target. Usually, you leave off the
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found