diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/go-mod-update-modules.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/go-mod-update-modules.bbclass b/meta/classes-recipe/go-mod-update-modules.bbclass index 6ef7ab553b..5fccd0bb0d 100644 --- a/meta/classes-recipe/go-mod-update-modules.bbclass +++ b/meta/classes-recipe/go-mod-update-modules.bbclass | |||
| @@ -48,7 +48,7 @@ python do_update_modules() { | |||
| 48 | 48 | ||
| 49 | env = dict(os.environ, GOMODCACHE=mod_cache_dir) | 49 | env = dict(os.environ, GOMODCACHE=mod_cache_dir) |
| 50 | 50 | ||
| 51 | source = d.expand("${WORKDIR}/${GO_SRCURI_DESTSUFFIX}") | 51 | source = d.expand("${UNPACKDIR}/${GO_SRCURI_DESTSUFFIX}") |
| 52 | output = subprocess.check_output(("go", "mod", "edit", "-json"), cwd=source, env=env, text=True) | 52 | output = subprocess.check_output(("go", "mod", "edit", "-json"), cwd=source, env=env, text=True) |
| 53 | go_mod = json.loads(output) | 53 | go_mod = json.loads(output) |
| 54 | 54 | ||
| @@ -78,7 +78,7 @@ python do_update_modules() { | |||
| 78 | 78 | ||
| 79 | mod_dir = mod['Dir'] | 79 | mod_dir = mod['Dir'] |
| 80 | 80 | ||
| 81 | if mod_dir.startswith(s_dir): | 81 | if not mod_dir.startswith(mod_cache_dir): |
| 82 | continue | 82 | continue |
| 83 | 83 | ||
| 84 | path = os.path.relpath(mod_dir, mod_cache_dir) | 84 | path = os.path.relpath(mod_dir, mod_cache_dir) |
