There are several targets at the make file that automatically download and install the required tools if they are not yet available locally. For example, the following tools are automatically downloaded and installed when required by the make target:
controller-get
customize
They are downloaded and installed by calling go-get-tool, which is just a function that uses the go get in an empty module to make the trick to get them installed.
This go get has been deprecated since go 1.17 and removed and replaced by go install in go 1.19.
The task here is to replace how we are installing the building tools with go install command. These tools should be installed atn the project bin directory, for example, something like this could work to install the controller-gen:
GOBIN=$(pwd)/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0
There are several targets at the make file that automatically download and install the required tools if they are not yet available locally. For example, the following tools are automatically downloaded and installed when required by the make target:
They are downloaded and installed by calling
go-get-tool
, which is just a function that uses thego get
in an empty module to make the trick to get them installed.This
go get
has been deprecated since go 1.17 and removed and replaced bygo install
in go 1.19.The task here is to replace how we are installing the building tools with
go install
command. These tools should be installed atn the project bin directory, for example, something like this could work to install the controller-gen:GOBIN=$(pwd)/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0