big-r81 commented on PR #37:
URL: https://github.com/apache/couchdb-glazier/pull/37#issuecomment-2301289008

   > One minor note. Maybe that is unrelated but it bugs me a bit.
   > 
   > After installing `git` via `choco`, the path for the binaries is not 
(automatically) added to the `PATH`:
   > 
   > ```
   > mkdir C:\relax\
   > cd C:\relax\
   > Set-ExecutionPolicy Bypass -Scope Process -Force; 
[System.Net.ServicePointManager]::SecurityProtocol = 
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object 
System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
   > choco feature enable -n allowGlobalConfirmation
   > choco install git
   > ```
   > 
   > Thus the invocations of `git` does not work out-of-the-box as the 
subsequent instructions would suggest:
   > 
   > ```
   > git config --global core.autocrlf false
   > git clone https://github.com/apache/couchdb-glazier
   > ```
   > 
   > To make them work, I had insert the following line:
   > 
   > ```
   > $env:PATH = $env:PATH + ';C:\Program Files\Git\bin'
   > ```
   
   Oh good point, we need to call `refreshenv`, but it isn't available at this 
time, so we would need to use an explicit workaround like 
(here)[https://github.com/apache/couchdb-glazier/blob/e13f3eb48f4562da2e62d3486a0b6a60cde2d47b/bin/install_dependencies.ps1#L32-L37].
 The benefit would be, that we don't need to hardcode the path.
   
   We should add a `bottstrap` script, which does all these steps 
automatically...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to