From 86356b672349b3cf1e73ae47e1522589f056fbcc Mon Sep 17 00:00:00 2001 From: equanox Date: Sat, 10 Dec 2022 22:21:17 +0100 Subject: [PATCH] avoid toLower --- bobtask/task.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bobtask/task.go b/bobtask/task.go index 5e0bdc0a..66e3eb53 100644 --- a/bobtask/task.go +++ b/bobtask/task.go @@ -202,11 +202,10 @@ func (t *Task) description() string { sort.Strings(t.env) for _, v := range t.env { // ignore buildCommandPath and SHLVL due to non-reproducibility - v = strings.ToLower(v) - if strings.HasPrefix(v, "buildcommandpath=") { + if strings.Contains(v, "buildCommandPath=") { continue } - if strings.HasPrefix(v, "shlvl=") { + if strings.Contains(v, "shlvl=") { continue } sb.WriteString(v)