Skip to content

Commit

Permalink
avoid toLower
Browse files Browse the repository at this point in the history
  • Loading branch information
Equanox committed Dec 10, 2022
1 parent ba5341c commit 86356b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bobtask/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86356b6

Please sign in to comment.