-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build: Fix gradle build for Mac OS #35968
Conversation
Remove trailing line feed from the output of the command to get the number of CPUs. Follow up to: elastic#35789
Pinging @elastic/es-core-infra |
@@ -910,7 +910,7 @@ class BuildPlugin implements Plugin<Project> { | |||
args '-n', 'hw.physicalcpu' | |||
standardOutput = stdout | |||
} | |||
return stdout.toString('UTF-8') | |||
return stdout.toString('UTF-8').replace(System.lineSeparator(), ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could just use .trim()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did I miss this!? Thanks.
@nik9000 no worries! |
Remove trailing line feed from the output of the command to get the number of CPUs. Follow up to: #35789
Backported to |
* master: DOCS Audit event attributes in new format (elastic#35510) Scripting: Actually add joda time back to whitelist (elastic#35965) [DOCS] fix HLRC ILM doc misreferenced tag Add realm information for Authenticate API (elastic#35648) [ILM] add HLRC docs to remove-policy-from-index (elastic#35759) [Rollup] Update serialization version after backport [Rollup] Add more diagnostic stats to job (elastic#35471) Build: Fix gradle build for Mac OS (elastic#35968) Adds deprecation logging to ScriptDocValues#getValues. (elastic#34279) [Monitoring] Make Exporters Async (elastic#35765) [ILM] reduce time restriction on IndexLifecycleExplainResponse (elastic#35954) Remove use of AbstractComponent in xpack (elastic#35394) Deprecate types in search and multi search templates. (elastic#35669) Remove fromXContent from IndexUpgradeInfoResponse (elastic#35934)
Remove trailing line feed from the output of the command to get
the number of CPUs.
Follow up to: #35789