Closed oliverpool closed 1 day ago
Huh, this is the first time I realize that the kernel-rpi-os-32 includes the sources as a git submodule. I wonder if that’s necessary? The other kernel repositories don’t do that and hence don’t run into this issue.
the sources as a git submodule
Pros:
Cons:
I should probably study how you compile the kernel for the rpi64 and adjust my code accordingly...
I found a simple workaround: disguise the submodule as a go module by adding a go.mod
file: https://github.com/gokrazy-community/kernel-rpi-os-32/commit/53b1566e0ecec36177ac4644d08001f1f84e8174
This workaround could be documented in the error message. Something like CheckDir failed, visit https://github.com/gokrazy/tools/issues/72 for a possible workaround: ...
.
I am compiling https://github.com/gokrazy-community/kernel-rpi-os-32 locally. When I adjust the
go.mod
file to use it:I get an error:
This is due to: https://github.com/gokrazy/tools/blob/41f11fbe3a53695e8ad701b98ec105d4b88084b6/internal/packer/sbom.go#L143 which calls
hashDir
, which callszip.CheckDir
, which is unhappy.Ideally, only the
dist
subdir should be checked (since this is the actually imported path).