mirror of
https://github.com/sbt/sbt.git
synced 2026-08-28 17:13:56 +02:00
Fix SBT Warn on slow HostName
Turns out the snippet provided in the warning was incorrect and did not resolve the issue properly. Adding `.local` to the end of the HostName will resolve the slowness. See the 2nd answer here: https://apple.stackexchange.com/questions/175320/why-is-my-hostname-resolution-taking-so-long
This commit is contained in:
@@ -51,7 +51,7 @@ class JUnitXmlTestsListener(val outputDir: String, legacyTestReport: Boolean, lo
|
||||
logger.warn(
|
||||
s"Getting the hostname $name was slow (${elapsed / 1.0e6} ms). " +
|
||||
"This is likely because the computer's hostname is not set. You can set the " +
|
||||
"hostname with the command: scutil --set HostName $(scutil --get LocalHostName)."
|
||||
"""hostname with the command: scutil --set HostName "$(scutil --get LocalHostName).local"."""
|
||||
)
|
||||
}
|
||||
name
|
||||
|
||||
Reference in New Issue
Block a user