log4perl icon indicating copy to clipboard operation
log4perl copied to clipboard

Appender test failing on MacOS Sequoia due to new OS behaviour

Open angusryer opened this issue 1 year ago • 1 comments

https://github.com/mschilli/log4perl/blob/059d95bc49c0225ff889a6b71ee561016925891f/t/003Layout.t#L181

The hostname check here fails because of what seems to be a bug(?) in MacOS Sequoia that replaces the value for HostName to be the local computer's MAC address.

A workaround is:

sudo scutil --set HostName "your-preferred-hostname"

angusryer avatar Nov 29 '24 19:11 angusryer

Hey @angusryer, thanks for your report, much appreciated! Pretty strange what MacOS Sequoia is doing here and you've already provided a workaround. Now, the question is should we fix it in the test suite? It's an easy fix to allow the colons in MAC addresses as hostnames (just prohibit spaces, which I think are actually illegal), so I put out the PR: https://github.com/mschilli/log4perl/pull/135

mschilli avatar Dec 31 '24 06:12 mschilli