go-uefi icon indicating copy to clipboard operation
go-uefi copied to clipboard

Indirect dependency u-root is broken

Open scj643 opened this issue 1 year ago • 6 comments

Related to: https://github.com/Foxboron/sbctl/issues/394

The package that uses u-root needs to be updated because it depends on intel-go/cpuid

scj643 avatar Oct 21 '24 18:10 scj643

https://github.com/hugelgupf/vmtest is the direct dependency with the issue

scj643 avatar Oct 21 '24 18:10 scj643

A temp workaround is to add this to go.mod

replace (
	github.com/intel-go/cpuid v0.0.0-20200819041909-2aa72927c3e2  => github.com/aregm/cpuid v0.0.0-20200819041909-2aa72927c3e2
)

scj643 avatar Oct 21 '24 18:10 scj643

Thanks, I'll fix this and forward push to sbctl!

Foxboron avatar Oct 21 '24 18:10 Foxboron

@scj643 What error are you actually seeing here though? I have a hard time figuring out how this is pulled into the project through vmtest.

Foxboron avatar Oct 21 '24 20:10 Foxboron

GOROOT=/usr/lib/golang #gosetup
GOPATH=/home/scj643/go #gosetup
/usr/lib/golang/bin/go list -modfile=/home/scj643/devel/secureboot/sbctl-upstream/go.mod -m -json -mod=mod all #gosetup
go: github.com/intel-go/[email protected]: invalid version: unknown revision 2aa72927c3e2

I dug through the cache greping for 20200819041909-2aa72927c3e2

scj643 avatar Oct 21 '24 20:10 scj643

I've PRed https://github.com/hugelgupf/vmtest/pull/129 but i'm still very confused how this actually works considering it's not listed in go.sum.

Foxboron avatar Oct 25 '24 08:10 Foxboron