git-subtrac icon indicating copy to clipboard operation
git-subtrac copied to clipboard

format string error

Open bradfitz opened this issue 4 years ago • 1 comments

tryFetchFromSubmodules has a format string error:

	for i := range repos {
		subpath := paths[i]
		subr := repos[i]
		c.infof("   path=%q subr=%q\n", subpath, subr)

Outputs:

Searching submodules for: decbde0a79d6462b8a9c009fddc24d5c40dd913b/oss@25b021388b 25b021388b83c80d1c717479ba9694e713af989d
   path="oss" subr=&{%!q(*filesystem.Storage=&{0xc000adf960 0xc000afea00 {{false false 0} 0xc000d84960 0xc000afea00 map[] [] 0 map[]} {0xc000afea00} {0xc000afea00} {0xc000afea00} {0xc000afea00} {0xc000afea00}}) map[] %!q(*chroot.ChrootHelper=&{0xc00000f740 /home/bradfitz/src/tailscale.io/oss})}
  ...found! in oss

bradfitz avatar Aug 10 '20 20:08 bradfitz

Hmm. This hasn't changed in quite a while, and it used to print something reasonable. Might need to look into it further.

On Mon, Aug 10, 2020 at 4:49 PM Brad Fitzpatrick [email protected] wrote:

tryFetchFromSubmodules has a format string error:

for i := range repos { subpath := paths[i] subr := repos[i] c.infof(" path=%q subr=%q\n", subpath, subr)

Outputs:

Searching submodules for: decbde0a79d6462b8a9c009fddc24d5c40dd913b/oss@25b021388b 25b021388b83c80d1c717479ba9694e713af989d path="oss" subr=&{%!q(*filesystem.Storage=&{0xc000adf960 0xc000afea00 {{false false 0} 0xc000d84960 0xc000afea00 map[] [] 0 map[]} {0xc000afea00} {0xc000afea00} {0xc000afea00} {0xc000afea00} {0xc000afea00}}) map[] %!q(*chroot.ChrootHelper=&{0xc00000f740 /home/bradfitz/src/tailscale.io/oss} http://tailscale.io/oss%7D)} ...found! in oss

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apenwarr/git-subtrac/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFA4ESI7HIPZQ5H24K4BDSABMNHANCNFSM4P2KZOCQ .

-- Avery Pennarun // CEO @ Tailscale

apenwarr avatar Aug 10 '20 20:08 apenwarr