Skip to content
Snippets Groups Projects
Unverified Commit 2ad43cb1 authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

audit: formally ban go get usage

There's been an informal ban for a while but let's
be punchier because this crops up still.
parent 539881f5
No related branches found
No related tags found
No related merge requests found
......@@ -885,6 +885,10 @@ class FormulaAuditor
problem "Formulae using virtualenvs do not need a `setuptools` resource."
end
if text =~ /system\s+['"]go['"],\s+['"]get['"]/
problem "Formulae should not use `go get`. If non-vendored resources are required use `go_resource`s."
end
return unless text.include?('require "language/go"') && !text.include?("go_resource")
problem "require \"language/go\" is unnecessary unless using `go_resource`s"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment