Update the `verify` Makefile target to build cross-compiled binaries.
This ensures the s2i CLI can be released across all supported platforms
at all times. Prevents future regressions of #1204.
Signed-off-by: Adam Kaplan <adam.kaplan@redhat.com>
- Update Dockerfiles to use the ubi9 go-toolset images. For the
releaser image, this avoids downloading the go sdk as part of the
relase process.
- Add `build-container` make target for convenience.
- Update ci-operator build root to use rhel-9 golang 1.20 image for OCP
4.15
Signed-off-by: Adam Kaplan <adam.kaplan@redhat.com>
Summary:
- Add 'make verify' to Travis.
- Fix verify-golint.sh: old invocation would not work unless GOPATH is a
single directory.
- Fix verify-govet.go: 'go vet' does not take flags, should use 'go tool
vet'.
- Fix early termination of hack/verify-govet.sh.
- Enable 'go vet' in 'make verify'; will prevent introducing problems
detected by the vet tool in future PRs.
- Make sure golint is installed in Travis.
- Improve install-tools.sh, parity with the one in openshift/origin.
- s/os::util::sed/s2i::util::sed for consistency.
- Reimplement/simplify find_files, now called s2i::util::find_files, and
use it in all scripts consistently.
- Suggest autocorrection for gofmt, as seen in openshift/origin.
- Do not check Go version (verify-*.sh should be run no matter the Go
version?!).
- Do not create directory _output/govet (not used?!).
- Explicitly disable check of composite literals. Vet gives false
positives on literals using unkeyed fields.