Hi Richard,
Unfortunately, that doesn't make the error messages go away. I agree that it's
not great that go-mod fetches during do_compile but that's the way it currently
is.
For completeness sake, here is the complete minimal example that _does_
compile. However, error messages à la
ERROR: When reparsing [...]/golang-test/golang-test.bb:do_compile, the basehash
value changed from
be5e3ca0e52fd3e3a0315fb32a2845f097bb6925940a8141b6f4d99fa2423e20 to
fc952756231a898ae7d3fd611607066b349042f5313b8363d11eef18ed317ed2. The metadata
is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake golang-test -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake golang-test -cdo_compile -Sprintdiff
are spewed out. Here's the recipe:
LICENSE = "CLOSED"
GO_IMPORT = "bitbucket.org/sven_schwermer/golang-a"
SRC_URI = "git://git@${GO_IMPORT};protocol=ssh;branch=master"
SRCREV = "f7d820d09a5b2332737a8105b3efd9c1e8e51d32"
inherit go-mod
do_compile() {
export SSH_AUTH_SOCK="${@d.getVar('BB_ORIGENV',
False).getVar('SSH_AUTH_SOCK', False)}"
go_do_compile
}
bitbucket.org/sven_schwermer/golang-a pulls in a secondary dependency
(bitbucket.org/sven_schwermer/golang-b) which is not publicly available. This
is golang-a's go.mod:
module bitbucket.org/sven_schwermer/golang-a
go 1.16
require bitbucket.org/sven_schwermer/golang-b v0.0.0-20210505180831-90ba3cd6391e
I have tested this also on latest poky@master (5a0679cb75) with identical
results.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53405): https://lists.yoctoproject.org/g/yocto/message/53405
Mute This Topic: https://lists.yoctoproject.org/mt/82558905/21656
Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-