Skip to contentSkip to conversation

classes/go-vendor: Use UNPACKDIR instead of WORKDIR

PATCH In review Joshua Watt 2 participants 2 messages Nov 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 meta/classes/go-vendor.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/go-vendor.bbclass +1 -1
index 1bbb99ac794..38ea69ab50a 100644
@@ -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)
 
Signature · 1 line
2.47.1
#1 lore raw
Quoted 14 lines · Joshua Watt via lists.openembedded.org

modules.txt is provided using file:// in SRC_URI, therefore it will be found in UNPACKDIR instead of WORKDIR

---
 meta/classes/go-vendor.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/go-vendor.bbclass +0 -0
index 1bbb99ac794..38ea69ab50a 100644

meta/classes/go-vendor.bbclass python do_go_vendor() { · line 159

Quoted 5 lines
meta/classes/go-vendor.bbclass +1 -1
@@ -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")

yes, thanks for fixing it.

Quoted 15 lines
meta/classes/go-vendor.bbclass +0 -1
     bb.debug(1, "cp %s --> %s" % (modules_txt_src, vendor_dir))
     shutil.copy2(modules_txt_src, vendor_dir)
 
--

2.47.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207885): https://lists.openembedded.org/g/openembedded-core/message/207885
Mute This Topic: https://lists.openembedded.org/mt/109797450/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-