all: run gofumpt (#652)

* all: run gofumpt

https://github.com/mvdan/gofumpt

The main appeal for me here is that my (and many other peoples')
editors run this on save, so doing a single diff here
keeps other diffs minimal.

* .github/workflows: add gofumpt checker
This commit is contained in:
Josh Bleecher Snyder 2025-08-29 20:04:31 -07:00 committed by GitHub
parent 6b9dbc3b05
commit 89ab72bee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 63 additions and 145 deletions

View file

@ -11,7 +11,6 @@ import (
)
func TestOldSshd(t *testing.T) {
piperaddr, piperport := nextAvailablePiperAddress()
piper, _, _, err := runCmd("/sshpiperd/sshpiperd",
@ -21,7 +20,6 @@ func TestOldSshd(t *testing.T) {
"--target",
"host-password-old:2222",
)
if err != nil {
t.Errorf("failed to run sshpiperd: %v", err)
}
@ -63,7 +61,6 @@ func TestOldSshd(t *testing.T) {
"127.0.0.1",
fmt.Sprintf(`sh -c "echo SSHREADY && sleep 1 && echo -n %v > /shared/%v"`, randtext, targetfie), // sleep 5 to cover https://github.com/tg123/sshpiper/issues/323
)
if err != nil {
t.Errorf("failed to ssh to piper-fixed, %v", err)
}
@ -81,7 +78,6 @@ func TestOldSshd(t *testing.T) {
checkSharedFileContent(t, targetfie, randtext)
})
}
}
func TestHostkeyParam(t *testing.T) {
@ -97,7 +93,6 @@ func TestHostkeyParam(t *testing.T) {
"--target",
"host-password:2222",
)
if err != nil {
t.Errorf("failed to run sshpiperd: %v", err)
}