brew update-reset was indeed the culprit
- You should expect your builds to break again soon. This may or may not be a bug depending on whether
sourcery really requires XCode to run and whether XCode 10.2 really requires MacOS 10.14.4.
When diffing the logs, you can see these interesting changes:
==> Fetching /usr/local/Homebrew...
- cf4511f72..0f09deded master -> origin/master
+ cf4511f72..1c655916f master -> origin/master
@@ -621,7 +621,7 @@
- 33a5454..6ad4351 master -> origin/master
+ 33a5454..db13fbb master -> origin/master
homebrew-core, there are no changes for
sourcery.rb between those revisions. But the formula includes this chunk:
depends_on :xcode => ["10.0", :build]
depends_on :xcode => "6.0"
brew, there are these relevant commits:
(The 1st one is actually before the 1st build, but it had no effect until the 2nd one fixed a bug in it.)
So, with Homebrew HEAD and the current formula code,
sourcery will fail to install with
xcode: 10.2 in MacOS<10.14.4.
Now, why did it start working despite the auto-update when you removed
That’s because, as it turns out, autoupdate only updates to the latest tag rather than HEAD while
update-reset updates to HEAD. And this change isn’t yet in tag.
Looking at the tag history, they are made approximately every 1-2 weeks. And the latest one was on 04.04.2019.