With the previous emails in mind, I have a diff for the build script in the ports tree if it would help. My xmonad.hs hardly changes these days. If the build script actually recompiled xmonad every time instead of quitting if xmonad.hs hasn't changed, I don't think this issue would come up in the future.
Index: files/build =================================================================== RCS file: /cvs/ports/x11/xmonad/files/build,v retrieving revision 1.1 diff -u -p -u -p -r1.1 build --- files/build 1 Mar 2021 04:16:34 -0000 1.1 +++ files/build 3 Apr 2022 17:02:34 -0000 @@ -2,11 +2,6 @@ output_file="${1}" -if [ "${output_file}" -nt xmonad.hs ]; then - echo "${output_file}" is newer than xmonad.hs - exit 0 -fi - cabal v2-install exe:xmonad-config --overwrite-policy=always --install-method=copy [ -e "${output_file}" ] && mv -f "${output_file}" "${output_file}.old" -- https://amissing.link/