On Thu, Mar 31, 2022 at 12:22 PM Diego Sueiro <[email protected]> wrote:

> Hi Bruce,
>
> Whilst investigating a build problem on our CI related to sstate mirror of
> the k3s recipe, I found that the commit "k3s: update to 1.23.1" 
> (8cba065209dd668afe939f878da340a017ecdd7d)
> didn't change the PV and SRCREV_k3s variables correctly.
>
> I changed those values to v1.23.1+k3s1
> and 08d538fb3a04a0fe904b34cf04f7e21191b82449 respectively and now I'm
> getting the following do_compile error:
> ```
> go: inconsistent vendoring in
> /kas_build_dir/tmp/work/neoversen1-poky-linux/k3s/v1.23.3+k3s1-r0/k3s-v1.23.3+k3s1/src/import:
>     github.com/google/[email protected]: is explicitly required in go.mod,
> but not marked as explicit in vendor/modules.txt
> [...]
>     k8s.io/sample-controller: is marked as replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/[email protected]
> in vendor/modules.txt, but replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/[email protected]
> in go.mod
>
>     To ignore the vendor directory, use -mod=readonly or -mod=mod.
>     To sync the vendor directory, run:
>         go mod vendor
> ```
>
>
The short log is wrong, the SRCREV and PV are correct. There's some
fundamental issues with 1.23.x that prevented it from building inside or
outside of bitbake, so I scaled back the version bump at the last minute to
stay in 1.22.x series.

And yes, there's no more vendoring in k3s, so you can't just bump the
SRCREV and PV, we have to adjust all of the git clones and shuffling to
make it build.

I have some more changes to that recipe pending, so I'll do a minor
cleanup, with a shortlog that makes things clear.

Cheers,

Bruce



> Unfortunately, I have zero knowledge in go and I have no idea how I could
> fix this.
>

> Diego Sueiro
> Staff Software Developer – ARM – Automotive and Industrial Solutions
> (CE-OSS)
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7121): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7121
Mute This Topic: https://lists.yoctoproject.org/mt/90158338/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to