Closed GauBen closed 8 months ago
looks like yarn requires git. if you do pkgx +git +yarn yarn patch ...whatever
does it work?
The error is the same:
$ pkgx +git yarn patch-commit -s /tmp/xfs-feb2eeb4/user
Internal Error: Unable to diff directories. Make sure you have a recent version of 'git' available in PATH.
The following error was reported by 'git':
error: Uncaught Error: invalid absolute path:
throw new Error(`invalid absolute path: ${input}`);
that's strange, since pkgx +git
will have a path with git on it. if you do pkgx install git
, does the yarn command work?
It does not work either. Can you reproduce the bug? It may be shell specific (zsh) or something else. In any case, thank you for your help
This appears to be solved on current versions, closing
accidentally fixing stuff is the best, maybe.
It seems that yarn patch does not work because of something related to pkgx:
Reproduction
dev
, which should show something likeenv +nodejs.org@20.9.0 +yarnpkg.com +git-scm.org
yarn patch <any dep>
with any dep being any js dependency of the project (e.g.yarn patch svelte
)yarn patch-commit -s /tmp/anything
given by the previous commandThis last step should fail with this error:
I investigated a bit to see what could cause that, but no luck so far
For some reason,
Deno.env.get("HOME")
is an empty string (but not undefined) and causes this line to throwhttps://deno.land/x/libpkgx@v0.15.0/src/utils/Path.ts?source=#L69