github.com/cockroachdb/cockroachdb-parser@v0.23.3-0.20240213214944-911057d40c9a/patches/0008-delete-bazel-reference-in-constants.go.patch (about)

     1  From 0545dc256278ada86ce74cb5ea8c397ba434c64a Mon Sep 17 00:00:00 2001
     2  From: Jeremy Yang <jyang@cockroachlabs.com>
     3  Date: Tue, 13 Feb 2024 13:46:32 -0800
     4  Subject: [PATCH] delete bazel reference in constants.go
     5  
     6  ---
     7   pkg/util/constants.go | 6 ------
     8   1 file changed, 6 deletions(-)
     9  
    10  diff --git a/pkg/util/constants.go b/pkg/util/constants.go
    11  index 4e2e8b4..ede4b9d 100644
    12  --- a/pkg/util/constants.go
    13  +++ b/pkg/util/constants.go
    14  @@ -15,7 +15,6 @@ import (
    15   	"math/rand"
    16   	"os"
    17   
    18  -	"github.com/cockroachdb/cockroachdb-parser/pkg/build/bazel"
    19   	"github.com/cockroachdb/cockroachdb-parser/pkg/util/buildutil"
    20   	"github.com/cockroachdb/cockroachdb-parser/pkg/util/randutil"
    21   	"github.com/cockroachdb/cockroachdb-parser/pkg/util/syncutil"
    22  @@ -98,11 +97,6 @@ func metamorphicEligible() bool {
    23   	if !buildutil.CrdbTestBuild {
    24   		return false
    25   	}
    26  -
    27  -	if bazel.InTestWrapper() {
    28  -		return false
    29  -	}
    30  -
    31   	return true
    32   }
    33   
    34  -- 
    35  2.38.1
    36