1
0
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:
Corey Daley
2023-03-14 20:11:44 -04:00
parent ca128755ab
commit 48f25bd76c
45 changed files with 16757 additions and 4 deletions

9
hack/tools.go Normal file
View 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
View 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