[chef] RE: Updating PATH on windows for use in subsequent recipes


Chronological Thread 
  • From: Adam Edwards < >
  • To:
  • Subject: [chef] RE: Updating PATH on windows for use in subsequent recipes
  • Date: Mon, 19 May 2014 11:19:47 -0700

How are you updating the path – using the env resource? On Windows, env sends a broadcast system message message that should cause new processes to get the latest environment.

 

-Adam

 

From: Jeppe Nejsum Madsen [mailto: "> ]
Sent: Monday, May 19, 2014 10:46 AM
To: ">
Subject: [chef] Updating PATH on windows for use in subsequent recipes

 

Hi

Is there a way to force reload of the PATH variable on windows?

We install git & nodejs and then tries to install some npm packages from a git repo.

But in the initial run, npm cannot find git because the current process' PATH is not updated.

Starting a new shell and running chef-client solves the issue, but this is of course less than ideal.

Any ideas?

/Jeppe

 




Archive powered by MHonArc 2.6.16.

§