Surely you can turn on option 3 indefinitely for local builds at least. Otherwise Apple kills the ability to develop any software while offline or behind a firewall.
Software that you build locally, or that you install with a package manager, is not affected.
The goal of Gatekeeper is to keep your Mac safe -- not to control what you can do on your Mac.
xattr -d com.apple.quarantine FILE
It removes the extended attribute from the given file.