On Tue, May 13, 2025 at 3:20 PM Andrey Repin <anrdae...@yandex.ru> wrote:
>
> Greetings, Aurélien Couderc!
>
> > Cygwin:
>
> > Using Cygwin install on network share in CI fails.
> > This seems to be a recent regression, as this was working a year before.
>
> > Now on Windows 10 with Cygwin 3.6.1 it fails with error 127.
>
> > Test case, using cmd.exe:
>
> > curl --remote-name "https://www.cygwin.com/setup-x86_64.exe";
> > .\setup-x86_64.exe -q --no-write-registry --no-admin --root %cd%
> > --no-desktop --site "https://mirrors.kernel.org/sourceware/cygwin";
> > .\bin\bash.exe -c 'ls -l ; echo $?'
>
> > Expected result:
> > ls -l output, with exit code 0
>
> > Actual result:
> > exit code 127
>
> > I am not good in debugging Cygwin, but it looks like .\bin\cygwin1.dll
> > just gives up at some point.
>
> Wait-wait-wait.
> You are installing Cygwin TO a network share of the Cygwin distribution is
> located on a share and you are installing it to a local drive?
>
> The latter is possible, the former is a very, very, VERY BAD IDEA.

We always install Cygwin on a network drive, the CI runs as a separate
user and the IT department does not install Cygwin on the machines
itself. The test machines also do not have local users, all users come
from N:, and have their home dirs on N: (Windows network share).

To clarify:
REM N: is a Windows network drive
REM Replace YYYYMMDDHHMMSS_INDEX with year, month, day, hour, minute,
second and index number of test
mkdir  N:\ci\runYYYYMMDDHHMMSS_INDEX
cd N:\ci\runYYYYMMDDHHMMSS_INDEX
REM install Cygwin for this test
.\setup-x86_64.exe -q --no-write-registry --no-admin --root %cd%
--no-desktop --site "https://mirrors.kernel.org/sourceware/cygwin";
REM run tests
.\bin\bash.exe -c 'ls -l ; echo $?'

This has been working since at least 2021 (Cygwin 3.3.0), but my
colleagues tell me that this even worked in 2016.

Aurélien
-- 
Aurélien Couderc <aurelien.couderc2...@gmail.com>
Big Data/Data mining expert, chess enthusiast

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to