Skip to content

Commit

Permalink
jobs: don't force-recurse
Browse files Browse the repository at this point in the history
the eval will take huge amount of resources in large repos like nixpkgs.
  • Loading branch information
sinanmohd committed Jul 12, 2024
1 parent 45d01e2 commit 9965a99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,11 @@ static int job_new(struct job **j, char *name, char *drv_path, char *attr,
int jobs_init(FILE **stream, char *expr)
{
size_t argindex;
char *args[5];
char *args[4];
int ret;

argindex = 0;
args[argindex++] = XSTR(NIX_EVAL_JOBS_PATH);
args[argindex++] = "--force-recurse";
if (evanix_opts.isflake)
args[argindex++] = "--flake";
args[argindex++] = expr;
Expand Down

0 comments on commit 9965a99

Please sign in to comment.