The previous version of sql.mk (from #132) uses a PKG variable that is not defined within sql.mk. This PR removes the use of PKG from sql.mk so that Makefiles can continue to set it up and pass it as an argument to the run-safesql command.
This PR also simplifies the code to install and run safesql, combining both the go get step and the actual execution into run-safesql.
SEC-756 (automate checks for sql injection)
The previous version of sql.mk (from #132) uses a
PKG
variable that is not defined within sql.mk. This PR removes the use ofPKG
from sql.mk so that Makefiles can continue to set it up and pass it as an argument to therun-safesql
command.This PR also simplifies the code to install and run safesql, combining both the
go get
step and the actual execution intorun-safesql
.Tested by adding this version to teacher-authorizations (check correctly fails).