mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
fmt: check gosimports during pre-commit hooks (#29520)
`gosimports` is the preferred style for module imports and it is enforced via CI. I've found that things often manage to drift so I've taken the liberty to update our pre-commit hook to verify our imports formatting before a change is committed. Along with updating the formatting helper I've also run `make fmt` to resolve any formatting drift that managed to make it into the codebase. Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
@@ -12,9 +12,8 @@ import (
|
||||
"time"
|
||||
|
||||
ghclient "github.com/google/go-github/v68/github"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/github"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var listGithubWorkflowRuns = &github.ListWorkflowRunsReq{}
|
||||
|
||||
Reference in New Issue
Block a user