From: Joshua Watt Date: Tue, 26 Nov 2024 21:44:48 +0000 (-0700) Subject: classes/go-vendor: Use UNPACKDIR instead of WORKDIR X-Git-Tag: uninative-4.7~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=114fe16f96280f40a9cea20b02b2743be42645dd;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git classes/go-vendor: Use UNPACKDIR instead of WORKDIR modules.txt is provided using file:// in SRC_URI, therefore it will be found in UNPACKDIR instead of WORKDIR Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- diff --git a/meta/classes/go-vendor.bbclass b/meta/classes/go-vendor.bbclass index 1bbb99ac794..38ea69ab50a 100644 --- a/meta/classes/go-vendor.bbclass +++ b/meta/classes/go-vendor.bbclass @@ -156,7 +156,7 @@ python do_go_vendor() { shutil.copy2(rootdirLicese, subdirLicense) # Copy vendor manifest - modules_txt_src = os.path.join(d.getVar('WORKDIR'), "modules.txt") + modules_txt_src = os.path.join(d.getVar('UNPACKDIR'), "modules.txt") bb.debug(1, "cp %s --> %s" % (modules_txt_src, vendor_dir)) shutil.copy2(modules_txt_src, vendor_dir)