Message ID | 20230524120448.40B7640A91@labor3.labor.astro |
---|---|
State | Accepted, archived |
Commit | 893f3b116b628457fe0bfaf4b8394b1cd05a90a5 |
Headers | show |
Series | fetch2/npm: evaluate PATH before patching HOME | expand |
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 8a179a339a..e6d0598f5d 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py @@ -103,6 +103,7 @@ class NpmEnvironment(object): """Run npm command in a controlled environment""" with tempfile.TemporaryDirectory() as tmpdir: d = bb.data.createCopy(self.d) + d.setVar("PATH", d.getVar("PATH")) # PATH might contain $HOME - evaluate it before patching d.setVar("HOME", tmpdir) if not workdir: