]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
classes/go-vendor: Use UNPACKDIR instead of WORKDIR
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 26 Nov 2024 21:44:48 +0000 (14:44 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Nov 2024 00:07:28 +0000 (00:07 +0000)
modules.txt is provided using file:// in SRC_URI, therefore it will be
found in UNPACKDIR instead of WORKDIR

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/go-vendor.bbclass

index 1bbb99ac79426241a64813f3413cb3eb89b1a994..38ea69ab50af93216515cad8d4fe9eae3b3b8f3a 100644 (file)
@@ -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)