Recently I was setting up my development environment on a new computer to work on the Incus project, following these steps . However as soon as I try to call make unit-test on the most recent commit I get this specific error all over the code base:
cmd/incus/info.go:139:14: non-constant format string in call to fmt.Printf
where it’s caused by statements such as:
fmt.Printf(prefix + i18n.G("DRM:") + "\n")
However it satisfies all the tests on the test runner and in my previous development setup, I never ran into this issue (some of the files throwing errors were last changed almost a full month ago). So would anyone have any tips on resolving this problem I am having?
It throws an error because the files affected are failing the build process.
If there’s a way I can work around this issue without having to change the actual code would be ideal. Would you happen to know the setup for the test runner on Github?