Skip to content

Commit 3cb15fc

Browse files
authored
fix: cli -- collection run -- clone request item at start (#3760)
1 parent 96d6bf1 commit 3cb15fc

File tree

1 file changed

+2
-2
lines changed
  • packages/bruno-cli/src/commands

1 file changed

+2
-2
lines changed

packages/bruno-cli/src/commands/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require('fs');
22
const chalk = require('chalk');
33
const path = require('path');
4-
const { forOwn } = require('lodash');
4+
const { forOwn, cloneDeep } = require('lodash');
55
const { exists, isFile, isDirectory } = require('../utils/filesystem');
66
const { runSingleRequest } = require('../runner/run-single-request');
77
const { bruToEnvJson, getEnvVars } = require('../utils/bru');
@@ -637,7 +637,7 @@ const handler = async function (argv) {
637637
let currentRequestIndex = 0;
638638
let nJumps = 0; // count the number of jumps to avoid infinite loops
639639
while (currentRequestIndex < bruJsons.length) {
640-
const iter = bruJsons[currentRequestIndex];
640+
const iter = cloneDeep(bruJsons[currentRequestIndex]);
641641
const { bruFilepath, bruJson } = iter;
642642

643643
const start = process.hrtime();

0 commit comments

Comments
 (0)