summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-11-26 14:44:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-28 00:07:30 +0000
commit09eb747db83046a120255eaf13dfc0b44ec12567 (patch)
treee308a176348858841347c76f0bcf7d4c75d70a02 /meta/classes
parentfea5b7b4526cf4888af4cae95318dd3993f28a50 (diff)
downloadpoky-09eb747db83046a120255eaf13dfc0b44ec12567.tar.gz
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 (From OE-Core rev: 114fe16f96280f40a9cea20b02b2743be42645dd) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/go-vendor.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go-vendor.bbclass b/meta/classes/go-vendor.bbclass
index 1bbb99ac79..38ea69ab50 100644
--- a/meta/classes/go-vendor.bbclass
+++ b/meta/classes/go-vendor.bbclass
@@ -156,7 +156,7 @@ python do_go_vendor() {
156 shutil.copy2(rootdirLicese, subdirLicense) 156 shutil.copy2(rootdirLicese, subdirLicense)
157 157
158 # Copy vendor manifest 158 # Copy vendor manifest
159 modules_txt_src = os.path.join(d.getVar('WORKDIR'), "modules.txt") 159 modules_txt_src = os.path.join(d.getVar('UNPACKDIR'), "modules.txt")
160 bb.debug(1, "cp %s --> %s" % (modules_txt_src, vendor_dir)) 160 bb.debug(1, "cp %s --> %s" % (modules_txt_src, vendor_dir))
161 shutil.copy2(modules_txt_src, vendor_dir) 161 shutil.copy2(modules_txt_src, vendor_dir)
162 162