mirror of https://github.com/sbt/sbt.git
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:
parent
8d8a376757
commit
b2363db3d6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue