From aaad95b19197ce1655ceddbe7412d8536df94375 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 4 Jun 2024 17:40:35 +0000 Subject: scripts: adjust to syhead go source location Signed-off-by: Bruce Ashfield --- scripts/oe-go-mod-autogen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/oe-go-mod-autogen.py') diff --git a/scripts/oe-go-mod-autogen.py b/scripts/oe-go-mod-autogen.py index c44c096a..d3b02012 100755 --- a/scripts/oe-go-mod-autogen.py +++ b/scripts/oe-go-mod-autogen.py @@ -502,7 +502,10 @@ class GoModTool(object): template = """# %s %s # [1] git ls-remote %s %s SRCREV_%s="%s" -SRC_URI += "git://%s;name=%s;protocol=https;nobranch=1;destsuffix=${WORKDIR}/${BP}/src/import/vendor.fetch/%s" +# pre styhead releases +# SRC_URI += "git://%s;name=%s;protocol=https;nobranch=1;destsuffix=${WORKDIR}/${BP}/src/import/vendor.fetch/%s" +# styhead and newer +SRC_URI += "git://%s;name=%s;protocol=https;nobranch=1;destsuffix=${GO_SRCURI_DESTSUFFIX}/vendor.fetch/%s" """ # We can't simply write SRC_URIs one by one in the order that go.mod specify them. -- cgit v1.2.3-54-g00ecf