Subject: git-lfs #dunfell To: yocto@lists.yoctoproject.org From: joel.winarske@linux.com X-Originating-Location: Seattle, Washington, US (71.212.127.60) X-Originating-Platform: Linux Firefox 83 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sat, 12 Dec 2020 08:37:34 -0800 Message-ID: Content-Type: multipart/alternative; boundary="gBzG7p8TIYogwxfx5Kur" --gBzG7p8TIYogwxfx5Kur Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am seeing problems in git fetcher using a github repo using lfs + ssh in = dunfell. I find if I set "lfs=3D0" it still attempts to download the lfs objects an= d fails.=C2=A0 Same behavior if "lfs=3D1". SRC_URI =3D "git://git@github.com:/account/cool-thing.git;protocol=3Dssh;l= fs=3D1;branch=3Dcool_branch" A suggested workaround by technoweenie here: https://github.com/git-lfs/gi= t-lfs/issues/1044 Only git clone via ssh works (pulls lfs objects) fine outside of the yocto= tree. Any ideas? Thanks, Joel git-lfs/ 2. 9. 2 (GitHub; linux amd64; go 1. 13. 5 ) git version 2. 25. 1 $ git-lfs filter-process Error downloading object: cool-thing/app/lib/agl/aarch64/libfmt.a ( 328664= b ): Smudge error: Error downloading cool-thing/app/lib/agl/aarch64/libfmt.= a ( 328664b0bd0cad33f28722b9a6ccd5ac9adea4485885bacd35082775e41601d8 ): bat= ch request: missing protocol: "" missing protocol: "" batch request github.com/git-lfs/git-lfs/errors.newWrappedError github.com/git-lfs/git-lfs/errors/types.go: 198 github.com/git-lfs/git-lfs/errors.Wrap github.com/git-lfs/git-lfs/errors/errors.go: 74 github.com/git-lfs/git-lfs/tq.(*tqClient).Batch github.com/git-lfs/git-lfs/tq/api.go: 68 github.com/git-lfs/git-lfs/tq.Batch github.com/git-lfs/git-lfs/tq/api.go: 40 github.com/git-lfs/git-lfs/tq.(*TransferQueue).enqueueAndCollectRetriesFor github.com/git-lfs/git-lfs/tq/transfer_queue.go: 520 github.com/git-lfs/git-lfs/tq.(*TransferQueue). collectBatches.func1 github.com/git-lfs/git-lfs/tq/transfer_queue.go: 432 runtime.goexit /usr/lib/go- 1. 13 /src/runtime/asm_amd64.s: 1357 Error downloading cool-thing/app/lib/agl/aarch64/libfmt.a ( 328664b0bd0cad= 33f28722b9a6ccd5ac9adea4485885bacd35082775e41601d8 ) github.com/git-lfs/git-lfs/errors.newWrappedError github.com/git-lfs/git-lfs/errors/types.go: 198 github.com/git-lfs/git-lfs/errors.Wrapf github.com/git-lfs/git-lfs/errors/errors.go: 85 github.com/git-lfs/git-lfs/lfs.(*GitFilter).downloadFile github.com/git-lfs/git-lfs/lfs/gitfilter_smudge.go: 115 github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge github.com/git-lfs/git-lfs/lfs/gitfilter_smudge.go: 76 github.com/git-lfs/git-lfs/commands.smudge github.com/git-lfs/git-lfs/commands/command_smudge.go: 127 github.com/git-lfs/git-lfs/commands.filterCommand github.com/git-lfs/git-lfs/commands/command_filter_process.go: 118 github.com/spf13/cobra.(*Command).execute github.com/spf13/cobra/command.go: 766 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/cobra/command.go: 850 github.com/spf13/cobra.(*Command).Execute github.com/spf13/cobra/command.go: 800 github.com/git-lfs/git-lfs/commands.Run github.com/git-lfs/git-lfs/commands/run.go: 97 main.main github.com/git-lfs/git-lfs/git- lfs.go : 33 runtime.main /usr/lib/go- 1. 13 /src/runtime/proc.go: 203 runtime.goexit /usr/lib/go- 1. 13 /src/runtime/asm_amd64.s: 1357 Smudge error github.com/git-lfs/git-lfs/errors.newWrappedError github.com/git-lfs/git-lfs/errors/types.go: 198 github.com/git-lfs/git-lfs/errors.NewSmudgeError github.com/git-lfs/git-lfs/errors/types.go: 284 github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge github.com/git-lfs/git-lfs/lfs/gitfilter_smudge.go: 85 github.com/git-lfs/git-lfs/commands.smudge github.com/git-lfs/git-lfs/commands/command_smudge.go: 127 github.com/git-lfs/git-lfs/commands.filterCommand github.com/git-lfs/git-lfs/commands/command_filter_process.go: 118 github.com/spf13/cobra.(*Command).execute github.com/spf13/cobra/command.go: 766 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/cobra/command.go: 850 github.com/spf13/cobra.(*Command).Execute github.com/spf13/cobra/command.go: 800 github.com/git-lfs/git-lfs/commands.Run github.com/git-lfs/git-lfs/commands/run.go: 97 main.main github.com/git-lfs/git-lfs/git- lfs.go : 33 runtime.main /usr/lib/go- 1. 13 /src/runtime/proc.go: 203 runtime.goexit /usr/lib/go- 1. 13 /src/runtime/asm_amd64.s: 1357 Current time in UTC: 2020-12-12 15:41:16 ENV: LocalWorkingDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work/aa= rch64-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git LocalGitDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work/aarch6= 4-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git/.git LocalGitStorageDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work= /aarch64-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git/.git LocalMediaDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work/aarc= h64-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git/.git/lfs/objects LocalReferenceDirs=3D TempDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work/aarch64-oe= -linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git/.git/lfs/tmp ConcurrentTransfers=3D 3 TusTransfers=3D false BasicTransfersOnly=3D false SkipDownloadErrors=3D false FetchRecentAlways=3D false FetchRecentRefsDays=3D 7 FetchRecentCommitsDays=3D 0 FetchRecentRefsIncludeRemotes=3D true PruneOffsetDays=3D 3 PruneVerifyRemoteAlways=3D false PruneRemoteName=3Dorigin LfsStorageDir=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc/work/aarc= h64-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0/git/.git/lfs AccessDownload=3Dnone AccessUpload=3Dnone DownloadTransfers=3Dbasic,lfs-standalon e-f ile UploadTransfers=3Dbasic,lfs-standalon e-f ile GIT_CONFIG_PARAMETERS=3D 'core.fsyncobjectfiles=3D0' GIT_EXEC_PATH=3D/usr/lib/git-core GIT_PREFIX=3D GIT_CEILING_DIRECTORIES=3D/b/lv- 0. 1 /apps/apps_proc/poky/build/tmp-glibc= /work/aarch64-oe-linux/cool-thing/git+AUTOINC+ 3158acc56b -r0 --gBzG7p8TIYogwxfx5Kur Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am seeing problems in git fetcher using a github repo using lfs + ssh in = dunfell.

I find if I set "lfs=3D0" it still attempts to download= the lfs objects and fails.  Same behavior if "lfs=3D1".

SR= C_URI =3D "git://git@github.com:/account/cool-thing.git;protocol=3Dssh;lfs= =3D1;branch=3Dcool_branch"


A suggested workaround by tech= noweenie here: https://github.com/git-lfs/git-lfs/issues= /1044

Only git clone via ssh works (pulls lfs objects) fine = outside of the yocto tree.


Any ideas?

Thanks,<= br />Joel

git-lfs/2.9.2 (GitHub; lin= ux amd64; go 1.13.5)
git version 2.25.1

$ git-lfs filter-process
Error downloading object: cool-thing/app/lib/agl/aarch= 64/libfmt.a (328664b): Smudge error: Error downloading cool-thing/app/lib/agl/aarch64/libfmt.a (= 328664b0bd0cad33f28722b9a6ccd5ac9adea448588= 5bacd35082775e41601d8): batch reques= t: missing protocol: "<unknown>= ;"

missing protocol: "<unknown>"
batch request
github.com/git-lfs/git-lfs/errors.new= WrappedError
github.com/git-lfs/git-lfs/errors/ty= pes.go:198
github.com/git-lfs/git-lfs/errors.Wra= p
github.com/git-lfs/git-lfs/errors/er= rors.go:74
github.com/git-lfs/git-lfs/tq.(*tqCli= ent).Batch
github.com/git-lfs/git-lfs/tq/api.go= :68
github.com/git-lfs/git-lfs/tq.Batch
github.com/git-lfs/git-lfs/tq/api.go= :40
github.com/git-lfs/git-lfs/tq.(*Trans= ferQueue).enqueueAndCollectRetriesFor
github.com/git-lfs/git-lfs/tq/transf= er_queue.go:520
github.com/git-lfs/git-lfs/tq.(*Trans= ferQueue).collectBatches.func1
github.com/git-lfs/git-lfs/tq/transf= er_queue.go:432
runtime.goexit
/usr/lib/go-1.13/src/runtime= /asm_amd64.s:1357
Error downloading cool-thing/app/lib/agl/aarch64/libfm= t.a (328664b0bd0cad33f28722b9a6ccd5a= c9adea4485885bacd35082775e41601d8)
github.com/git-lfs/git-lfs/errors.new= WrappedError
github.com/git-lfs/git-lfs/errors/ty= pes.go:198
github.com/git-lfs/git-lfs/errors.Wra= pf
github.com/git-lfs/git-lfs/errors/er= rors.go:85
github.com/git-lfs/git-lfs/lfs.(*GitF= ilter).downloadFile
github.com/git-lfs/git-lfs/lfs/gitfi= lter_smudge.go:115
github.com/git-lfs/git-lfs/lfs.(*GitF= ilter).Smudge
github.com/git-lfs/git-lfs/lfs/gitfi= lter_smudge.go:76
github.com/git-lfs/git-lfs/commands.s= mudge
github.com/git-lfs/git-lfs/commands/= command_smudge.go:127
github.com/git-lfs/git-lfs/commands.f= ilterCommand
github.com/git-lfs/git-lfs/commands/= command_filter_process.go:118=
github.com/spf13/cobra.(*Command).exe= cute
github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).Exe= cuteC
github.com/spf13/cobra/command.go:850
github.com/spf13/cobra.(*Command).Exe= cute
github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.R= un
github.com/git-lfs/git-lfs/commands/= run.go:97
main.main
github.com/git-lfs/git-lfs/git-lfs.go:33
runtime.main
/usr/lib/go-1.13/src/runtime= /proc.go:203
runtime.goexit
/usr/lib/go-1.13/src/runtime= /asm_amd64.s:1357
Smudge error
github.com/git-lfs/git-lfs/errors.new= WrappedError
github.com/git-lfs/git-lfs/errors/ty= pes.go:198
github.com/git-lfs/git-lfs/errors.New= SmudgeError
github.com/git-lfs/git-lfs/errors/ty= pes.go:284
github.com/git-lfs/git-lfs/lfs.(*GitF= ilter).Smudge
github.com/git-lfs/git-lfs/lfs/gitfi= lter_smudge.go:85
github.com/git-lfs/git-lfs/commands.s= mudge
github.com/git-lfs/git-lfs/commands/= command_smudge.go:127
github.com/git-lfs/git-lfs/commands.f= ilterCommand
github.com/git-lfs/git-lfs/commands/= command_filter_process.go:118=
github.com/spf13/cobra.(*Command).exe= cute
github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).Exe= cuteC
github.com/spf13/cobra/command.go:850
github.com/spf13/cobra.(*Command).Exe= cute
github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.R= un
github.com/git-lfs/git-lfs/commands/= run.go:97
main.main
github.com/git-lfs/git-lfs/git-lfs.go:33
runtime.main
/usr/lib/go-1.13/src/runtime= /proc.go:203
runtime.goexit
/usr/lib/go-1.13/src/runtime= /asm_amd64.s:1357

Current time in UTC:
2020-12-12 15:41:16

ENV:
LocalWorkingDir=3D/b/lv-0.<= span style=3D"color: #569cd6;">1/app= s/apps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AUTOI= NC+3158acc56b-r0/git
LocalGitDir=3D/b/lv-0.1/apps/ap= ps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AUTOINC+<= /span>3158acc56b-r0/git/.git
LocalGitStorageDir=3D/b/lv-0.1/= apps/apps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AU= TOINC+3158acc56b-r0/git/.git
LocalMediaDir=3D/b/lv-0.1/apps/= apps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AUTOINC= +3158acc56b-r0/git/.git/lfs/objects
LocalReferenceDirs=3D
TempDir=3D/b/lv-0.1/apps/apps_p= roc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AUTOINC+3158acc56b-r0/git/.git/lfs/tmp
ConcurrentTransfers=3D3
TusTransfers=3Dfalse
BasicTransfersOnly=3Dfalse
SkipDownloadErrors=3Dfalse
FetchRecentAlways=3Dfalse
FetchRecentRefsDays=3D7
FetchRecentCommitsDays=3D0
FetchRecentRefsIncludeRemotes=3Dtrue
PruneOffsetDays=3D3
PruneVerifyRemoteAlways=3Dfalse
PruneRemoteName=3Dorigin
LfsStorageDir=3D/b/lv-0.1/apps/= apps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/git+AUTOINC= +3158acc56b-r0/git/.git/lfs
AccessDownload=3Dnone
AccessUpload=3Dnone
DownloadTransfers=3Dbasic,lfs-standal= one-file
UploadTransfers=3Dbasic,lfs-standalon= e-file
GIT_CONFIG_PARAMETERS=3D'core.fsyncobjectfiles=3D0'
GIT_EXEC_PATH=3D/usr/lib/git-core
GIT_PREFIX=3D
GIT_CEILING_DIRECTORIES=3D/b/lv-0.= 1/apps/apps_proc/poky/build/tmp-glibc/work/aarch64-oe-linux/cool-thing/g= it+AUTOINC+3158acc56b-r0


--gBzG7p8TIYogwxfx5Kur--