Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## What does this PR do? This adds a check for 0 when determining the concurrency limit used by mage during a build. ## Why is it important? `docker info -f '{{ json .}}'` exits with 0 even if there was an error, so the check for `err == nil` doesn't catch errors, and the default int value of 0 is used when trying to read `info.NCPU`. This leads to the confusing behaviour where the build stops and hangs forever with no errors and no indication that anything has gone wrong unless you build with --verbose. (cherry picked from commit 10f850e) Co-authored-by: Maxwell Borden <[email protected]>
- Loading branch information