Skip to content

Commit d938679

Browse files
fix string used to check image name (#32582)
1 parent ee6f470 commit d938679

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev-tools/mage/crossbuild.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (b GolangCrossBuilder) Build() error {
301301
// basically, apt-get has a bug where will try to iterate through every possible FD as set by the NOFILE ulimit.
302302
// On certain docker installs, docker will set the ulimit to a value > 10^9, which means apt-get will take >1 hour.
303303
// This runs across all possible debian platforms, since there's no real harm in it.
304-
if strings.Contains(b.Platform, "debian") {
304+
if strings.Contains(image, "debian") {
305305
args = append(args, "--ulimit", "nofile=262144:262144")
306306
}
307307

0 commit comments

Comments
 (0)