sg: fix cheeky message formatting (#50669)

I waited long enough to see that this formatting string was broken.

Did you know the `fmt` package could take explicit argument indexes in
its format string? I didn't until I waited 10 minutes for
`otel-collector` to build.

## Test plan

N/A

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
This commit is contained in:
Camden Cheek 2023-04-15 07:20:32 -06:00 committed by GitHub
parent e20017e1e3
commit df74999810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ func (c *cmdRunner) waitForInstallation(ctx context.Context, cmdNames map[string
"At this point it could be anything - does your computer still have power?",
"Might as well check Slack. %s is taking its time...",
"In German there's a saying: ein guter Käse braucht seine Zeit - a good cheese needs its time. Maybe %s is cheese?",
"If %s turns out to be cheese I'm gonna lose it. Hey, %s, hurry up, will ya",
"If %[1]s turns out to be cheese I'm gonna lose it. Hey, %[1]s, hurry up, will ya",
"Still waiting for %s to finish installing...",
}
messageCount := 0