mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
adding goio
This commit is contained in:
9
hack/tools.go
Normal file
9
hack/tools.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build tools
|
||||
// +build tools
|
||||
|
||||
package hack
|
||||
|
||||
// Add tools that scripts depend on here, to ensure they are vendored.
|
||||
import (
|
||||
_ "github.com/go-imports-organizer/goio"
|
||||
)
|
||||
9
hack/verify-imports.sh
Executable file
9
hack/verify-imports.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
bad_files=$(go run ./vendor/github.com/go-imports-organizer/goio -l)
|
||||
if [[ -n "${bad_files}" ]]; then
|
||||
echo "!!! goio needs to be run on the following files:"
|
||||
echo "${bad_files}"
|
||||
echo "Try running 'make imports'"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user