I came across some strange behavior when resolving a package, and redirecting the output into a file.
So for instance, if I resolve a package like so:
$ swift package resolve > resolve.log
I would expect that all the output from this command would end up in the file
resolve.log, and I would not see any output in the terminal. However this is not actually what happens. Instead, almost all the output goes to
resolve.log, except for one line:
$ swift package resolve > resolve.log Completed resolution in 4.95s
Out of curiosity, I searched the package manager repo to see if I could find where this was output from, and with a cursory review I wasn't able to find a string similar to this output from anywhere.
So where is this string coming from, and how is it making it to my stdout instead of the redirected destination?