Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In DEV-783 we had a problem with a version of go not correctly supporting the plugin system, which causes problems for our `golangci-lint` tooling. That problem was obfuscated by a warning about xcode (a common pain point) that was actually a red herring. Here we detect the known bad version of go (as well as set up some framework for detecting known-bad versions again in the future) and put the `xcodebuild` error messaging in the report rather than on the command line, so it can be correctly dealt with IF (and preferably only if) it is actually a problem. Test Plan: 1. Run `system_report.sh` to verify it works correctly. 2. Modify the version of go to validate it detects bad versions correctly: ```sh Go: go: go version go1.16.13 darwin/amd64 (/usr/local/bin/go -> ../Cellar/[email protected]/1.16.13/bin/go) !!! WARNING!!! This version of go has problems with linters, see DEV-783 ``` 3. Had @jeffkhan run the script from the topic branch, xcode reports for him: ```sh OSX - XCode: Xcode Version: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance ``` Author: dbraley Reviewers: yogieric Required Reviewers: Approved By: yogieric Checks: Pull Request URL: #53
- Loading branch information