From d938679b499465690fae4a5a9b86ca8d8ff61df5 Mon Sep 17 00:00:00 2001 From: Alex K <8418476+fearful-symmetry@users.noreply.github.com> Date: Wed, 3 Aug 2022 07:53:05 -0700 Subject: [PATCH] fix string used to check image name (#32582) --- dev-tools/mage/crossbuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/mage/crossbuild.go b/dev-tools/mage/crossbuild.go index 47e24d45a2d..8fcd1e2e6d1 100644 --- a/dev-tools/mage/crossbuild.go +++ b/dev-tools/mage/crossbuild.go @@ -301,7 +301,7 @@ func (b GolangCrossBuilder) Build() error { // basically, apt-get has a bug where will try to iterate through every possible FD as set by the NOFILE ulimit. // On certain docker installs, docker will set the ulimit to a value > 10^9, which means apt-get will take >1 hour. // This runs across all possible debian platforms, since there's no real harm in it. - if strings.Contains(b.Platform, "debian") { + if strings.Contains(image, "debian") { args = append(args, "--ulimit", "nofile=262144:262144") }