From 8f7787f9f558aa3871b5553c3dc3b9300306a846 Mon Sep 17 00:00:00 2001
From: CrazyMax <crazy-max@users.noreply.github.com>
Date: Tue, 5 Jan 2021 13:34:14 +0100
Subject: [PATCH] Revert "Merge pull request #46 from
 crazy-max/disable-clipping"

This reverts commit 87e1457170d22fc3741a565314ad4876f43c8ea3, reversing
changes made to 370507b7137eeea85f3ac9fa393ee12a6e4ac225.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
---
 dist/index.js | 4 ----
 src/main.ts   | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index d891649..6ec37b1 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -518,8 +518,6 @@ const buildx = __importStar(__webpack_require__(295));
 const context = __importStar(__webpack_require__(842));
 const mexec = __importStar(__webpack_require__(757));
 const stateHelper = __importStar(__webpack_require__(647));
-const buildkitStepLogMaxSize = 1024 * 8192;
-const buildkitStepLogMaxSpeed = -1;
 function run() {
     return __awaiter(this, void 0, void 0, function* () {
         try {
@@ -546,8 +544,6 @@ function run() {
                     yield context.asyncForEach(inputs.driverOpts, (driverOpt) => __awaiter(this, void 0, void 0, function* () {
                         createArgs.push('--driver-opt', driverOpt);
                     }));
-                    createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SIZE=' + buildkitStepLogMaxSize);
-                    createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SPEED=' + buildkitStepLogMaxSpeed);
                     if (inputs.buildkitdFlags) {
                         createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
                     }
diff --git a/src/main.ts b/src/main.ts
index c0ba280..d5eb526 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -8,9 +8,6 @@ import * as context from './context';
 import * as mexec from './exec';
 import * as stateHelper from './state-helper';
 
-const buildkitStepLogMaxSize = 1024 * 8192;
-const buildkitStepLogMaxSpeed = -1;
-
 async function run(): Promise<void> {
   try {
     if (os.platform() !== 'linux') {
@@ -41,8 +38,6 @@ async function run(): Promise<void> {
         await context.asyncForEach(inputs.driverOpts, async driverOpt => {
           createArgs.push('--driver-opt', driverOpt);
         });
-        createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SIZE=' + buildkitStepLogMaxSize);
-        createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SPEED=' + buildkitStepLogMaxSpeed);
         if (inputs.buildkitdFlags) {
           createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
         }