cupcakearmy / autorestic

Config driven, easy backup cli for restic.

Home Page:https://autorestic.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run tests

solopasha opened this issue · comments

Describe the bug

❯ go test ./cmd/
# github.com/cupcakearmy/autorestic/cmd
cmd/root.go:58:4: (*github.com/fatih/color.Color).Println call has possible formatting directive %s
FAIL

Shouldn't there:

colors.Error.Println("cannot read config file %s\n", cfgFile)
be Printf instead?

There are no tests in the cmd directory, it's not going to work.

You should rather run go test ./... in the project root directory.

fixed in 0455132