File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 env:
9292 XDG_DATA_HOME: /tmp/foo
9393
94- - run : env
95-
9694 - run : |
9795 sudo ./pkgm.ts i node@22 dev
9896 [[ $(node --version) = v22* ]] || exit 2
Original file line number Diff line number Diff line change @@ -287,8 +287,6 @@ async function query_pkgx(
287287) : Promise < [ JsonResponse , Record < string , string > ] > {
288288 args = args . map ( ( x ) => `+${ x } ` ) ;
289289
290- console . error ( "HIDEOUS" , Deno . env . toObject ( ) ) ;
291-
292290 const env : Record < string , string > = {
293291 "PATH" : standardPath ( ) ,
294292 } ;
@@ -300,6 +298,7 @@ async function query_pkgx(
300298 set ( "PKGX_DIR" ) ;
301299 set ( "PKGX_PANTRY_DIR" ) ;
302300 set ( "PKGX_DIST_URL" ) ;
301+ set ( "XDG_DATA_HOME" ) ;
303302
304303 const needs_sudo_backwards = install_prefix ( ) . string == "/usr/local" ;
305304 let cmd = needs_sudo_backwards ? "/usr/bin/sudo" : pkgx ;
You can’t perform that action at this time.
0 commit comments