Hey Lukas
On 24.10.2023 08:33, Lukas Funke wrote:
- I placed the correct URL into SRC_URI, but do_go_vendor still
failed with following stacktrace:
File:
'/home/uvv/projects/yocto-lorch-mapro/openembedded-core/meta/classes/go-vendor.bbclass',
lineno: 86, function: do_go_vendor
0082: # path = github.com/foo/bar
0083: # version = v1.2.3
0084:
0085: p = destsuffix[len(default_destsuffix)+1:]
*** 0086: path, version = p.split('@')
0087:
0088: subdir = fetcher.ud[url].parm.get('go_subdir')
0089: subdir = "" if not subdir else subdir
0090:
Exception: ValueError: not enough values to unpack (expected 2, got 1)
The reason is that my go.mod name does not have a version component.
If I understood the convention https://go.dev/ref/mod#introduction,
it's not a required component, so this should be taken into account.
This error could happen if your dependencies don't have a version.
I've never seen this in my experiments. Maybe check your go.mod file
for the missing version info.
I debugged it a bit and see that the error is actually caused by my URL
modification. The URL that works for me looks like
SRC_URI = git://git@${GO_IMPORT}.git;...
The parsing expects the version after "@", which is not right anymore.
Slava
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#189638):
https://lists.openembedded.org/g/openembedded-core/message/189638
Mute This Topic: https://lists.openembedded.org/mt/102017388/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-