Skip to content

Commit

Permalink
fix string used to check image name (#32582)
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry authored Aug 3, 2022
1 parent ee6f470 commit d938679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/mage/crossbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit d938679

Please sign in to comment.