Build:
  1. 0
2025-06-22 01:37.10: New job: Build using windows-1809-x86_64 in
                                [https://github.com/ocaml-opam/opam-repository-mingw#sunset (69dbd0eda2e75b7085cff45755111c73a7a42d1a)]
2025-06-22 01:37.10: Will push staging image to ocurrent/opam-staging:windows-mingw-ltsc2019-opam-amd64

Dockerfile:

# escape=`

# Autogenerated by OCaml-Dockerfile scripts
FROM mcr.microsoft.com/windows:10.0.17763.7434 AS winget-builder
USER ContainerAdministrator
ADD [ "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle", "C:\\TEMP\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.zip" ]
RUN powershell -Command "Expand-Archive -LiteralPath C:\TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.zip -DestinationPath C:\TEMP\winget-cli -Force"
RUN ren C:\TEMP\winget-cli\AppInstaller_x64.msix AppInstaller_x64.zip
RUN powershell -Command "Expand-Archive -LiteralPath C:\TEMP\winget-cli\AppInstaller_x64.zip -DestinationPath C:\TEMP\winget-cli\ -Force"
RUN mkdir "C:\Program Files\winget-cli" && `
  move "C:\TEMP\winget-cli\\winget.exe" "C:\Program Files\winget-cli\" && `
  move "C:\TEMP\winget-cli\\WindowsPackageManager.dll" "C:\Program Files\winget-cli\" && `
  move "C:\TEMP\winget-cli\\resources.pri" "C:\Program Files\winget-cli\"

FROM mcr.microsoft.com/windows:10.0.17763.7434 AS opam-builder
USER ContainerAdministrator
RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "\\$"') do `
          for /f "delims=" %l in ('cmd /v:on /c "set v=%c&& echo !v:~0,-1!"') do `
            reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "%l"
ENV CYGWIN="nodosfilewarning winsymlinks:native"
RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "^[^H]"') do `
        reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "C:\cygwin64\bin;%c"
ADD [ "https://www.cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe" ]
RUN mkdir C:\cygwin64\lib\cygsympathy && mkdir C:\cygwin64\etc\postinstall
ADD [ "https://raw.githubusercontent.com/metastack/cygsympathy/master/cygsympathy.cmd", "C:\\cygwin64\\lib\\cygsympathy\\" ]
ADD [ "https://raw.githubusercontent.com/metastack/cygsympathy/master/cygsympathy.sh", "C:\\cygwin64\\lib\\cygsympathy\\cygsympathy" ]
RUN mklink C:\cygwin64\etc\postinstall\zp_zcygsympathy.sh C:\cygwin64\lib\cygsympathy\cygsympathy
RUN C:\cygwin64\setup-x86_64.exe --quiet-mode --no-shortcuts --no-startmenu --no-desktop --only-site --local-package-dir C:\TEMP\cache --root C:\cygwin64 --site https://mirrors.kernel.org/sourceware/cygwin/ --symlink-type=native --packages diffutils,git,make,mingw64-i686-gcc-g++,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,patch && `
  powershell -Command "Remove-Item 'C:\TEMP' -Recurse"
RUN C:\cygwin64\bin\peflags -d0 C:\cygwin64\bin\cygwin1.dll
RUN awk -i inplace "/(^#)|(^$)/{print;next}{$4=""noacl,""$4; print}" C:\cygwin64\etc\fstab
ENV HOME="C:\cygwin64\home\opam"
RUN C:\cygwin64\bin\bash.exe --login -c "git config --global user.email 'docker@example.com' && git config --global user.name 'Docker' && git config --system core.longpaths true && git config --global --add safe.directory /tmp/opam-sources"
RUN C:\cygwin64\bin\bash.exe --login -c "git clone https://github.com/ocaml/opam /tmp/opam && cd /tmp/opam && git checkout 0173fdf123fc22debb821c5ad49cf2dcd166e5cf && make compiler "
RUN C:\cygwin64\bin\bash.exe --login -c "git clone /tmp/opam /tmp/opam-build-2.2 && cd /tmp/opam-build-2.2 && git config --global --add safe.directory /tmp/opam-build-2.2 && git checkout 01e9a24a61e23e42d513b4b775d8c30c807439b2"
RUN C:\cygwin64\bin\bash.exe --login -c "cd /tmp/opam-build-2.2 && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" ./configure --enable-cold-check --with-private-runtime --with-vendored-deps --with-0install-solver && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" make && make install && mv /usr/local/bin/opam.exe /usr/local/bin/opam-2.2.exe"
RUN C:\cygwin64\bin\bash.exe --login -c "git clone /tmp/opam /tmp/opam-build-2.3 && cd /tmp/opam-build-2.3 && git config --global --add safe.directory /tmp/opam-build-2.3 && git checkout 35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724"
RUN C:\cygwin64\bin\bash.exe --login -c "cd /tmp/opam-build-2.3 && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" ./configure --enable-cold-check --with-private-runtime --with-vendored-deps --with-0install-solver && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" make && make install && mv /usr/local/bin/opam.exe /usr/local/bin/opam-2.3.exe"
RUN C:\cygwin64\bin\bash.exe --login -c "git clone /tmp/opam /tmp/opam-build-master && cd /tmp/opam-build-master && git config --global --add safe.directory /tmp/opam-build-master && git checkout 0173fdf123fc22debb821c5ad49cf2dcd166e5cf"
RUN C:\cygwin64\bin\bash.exe --login -c "cd /tmp/opam-build-master && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" ./configure --enable-cold-check --with-private-runtime --with-vendored-deps --with-0install-solver && env PATH="/tmp/opam/bootstrap/ocaml/bin:$PATH" make && make install && mv /usr/local/bin/opam.exe /usr/local/bin/opam-master.exe"

FROM mcr.microsoft.com/windows:10.0.17763.7434
USER ContainerAdministrator
LABEL distro_style="windows"
USER ContainerAdministrator
RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "\\$"') do `
          for /f "delims=" %l in ('cmd /v:on /c "set v=%c&& echo !v:~0,-1!"') do `
            reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "%l"
ADD [ "https://aka.ms/vs/17/release/vc_redist.x64.exe", "C:\\TEMP\\" ]
RUN C:\TEMP\vc_redist.x64.exe /install /passive /norestart /log C:\TEMP\vc_redist.log && `
  powershell -Command "Remove-Item 'C:\TEMP' -Recurse"
COPY --from=winget-builder [ "C:\\Program Files\\winget-cli", "C:\\Program Files\\winget-cli" ]
RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "^[^H]"') do `
        reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "C:\Program Files\winget-cli;%c"
RUN powershell -Command "$path=(Join-Path $env:LOCALAPPDATA 'Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState'); New-Item $path -ItemType Directory -Force; '{ """"$schema"""": """"https://aka.ms/winget-settings.schema.json"""", """"telemetry"""": { """"disable"""": """"true"""" } }' | Out-File -encoding ASCII (Join-Path $path 'settings.json')"
ENV CYGWIN="nodosfilewarning winsymlinks:native"
RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "^[^H]"') do `
        reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "C:\cygwin64\bin;%c"
ADD [ "https://www.cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe" ]
RUN mkdir C:\cygwin64\lib\cygsympathy && mkdir C:\cygwin64\etc\postinstall
ADD [ "https://raw.githubusercontent.com/metastack/cygsympathy/master/cygsympathy.cmd", "C:\\cygwin64\\lib\\cygsympathy\\" ]
ADD [ "https://raw.githubusercontent.com/metastack/cygsympathy/master/cygsympathy.sh", "C:\\cygwin64\\lib\\cygsympathy\\cygsympathy" ]
RUN mklink C:\cygwin64\etc\postinstall\zp_zcygsympathy.sh C:\cygwin64\lib\cygsympathy\cygsympathy
RUN C:\cygwin64\setup-x86_64.exe --quiet-mode --no-shortcuts --no-startmenu --no-desktop --only-site --local-package-dir C:\TEMP\cache --root C:\cygwin64 --site https://mirrors.kernel.org/sourceware/cygwin/ --symlink-type=native --packages curl,diffutils,git,m4,make,mingw64-x86_64-gcc-core,patch,perl,rsync,unzip && `
  powershell -Command "Remove-Item 'C:\TEMP' -Recurse"
RUN C:\cygwin64\bin\peflags -d0 C:\cygwin64\bin\cygwin1.dll
RUN awk -i inplace "/(^#)|(^$)/{print;next}{$4=""noacl,""$4; print}" C:\cygwin64\etc\fstab
ADD [ "https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam64.tar.xz", "C:\\TEMP\\" ]
RUN C:\cygwin64\bin\bash.exe --login -c "cd /tmp && tar -xf /cygdrive/c/TEMP/opam64.tar.xz && ./opam64/install.sh --prefix=/usr && rm -rf opam64 opam64.tar.xz"
COPY --from=opam-builder [ "C:\\cygwin64\\usr\\local\\bin\\opam-2.2.exe", "C:\\opam-2.2.exe" ]
RUN move C:\opam-2.2.exe C:\cygwin64\usr\local\bin
COPY --from=opam-builder [ "C:\\cygwin64\\usr\\local\\bin\\opam-2.3.exe", "C:\\opam-2.3.exe" ]
RUN move C:\opam-2.3.exe C:\cygwin64\usr\local\bin
COPY --from=opam-builder [ "C:\\cygwin64\\usr\\local\\bin\\opam-master.exe", "C:\\opam-dev.exe" ]
RUN move C:\opam-dev.exe C:\cygwin64\usr\local\bin
WORKDIR C:\cygwin64\home\opam
ENV HOME="C:\cygwin64\home\opam"
RUN C:\cygwin64\bin\bash.exe --login -c "git config --global user.email 'docker@example.com' && git config --global user.name 'Docker' && git config --system core.longpaths true && git config --global --add safe.directory /home/opam/opam-repository"
COPY [ ".", "C:\\cygwin64\\home\\opam\\opam-repository" ]
ENV OPAMROOT="C:\opam\.opam"
RUN opam init -k git -a "C:\cygwin64\home\opam\opam-repository" --bare --disable-sandboxing
RUN C:\cygwin64\bin\bash.exe --login -c "rm -rf /cygdrive/c/opam/.opam/repo/default/.git"
COPY [ "Dockerfile", "/Dockerfile.opam" ]


2025-06-22 01:37.10: Using cache hint "opam-windows-mingw-ltsc2019"
2025-06-22 01:37.10: Waiting for resource in pool OCluster
2025-06-22 01:37.10: Waiting for worker…
2025-06-22 01:37.10: Got resource from pool OCluster
Building on ltsc2019-1
All commits already cached
HEAD is now at 69dbd0eda Merge pull request #21 from dra27/changes-b530f3bbd2

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

  Started : Sunday, June 22, 2025 1:37:56 AM
   Source : c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\
     Dest : c:\state\tmp\build-context-2e9595\.git\

    Files : *.*
	    
  Options : *.* /S /E /DCOPY:T /COPY:DATSO /R:0 /W:30 

------------------------------------------------------------------------------

	  New Dir          6	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\
	    New File  		     294	config
100%  
	    New File  		      73	description
100%  
	    New File  		    1674	FETCH_HEAD
100%  
	    New File  		      23	HEAD
100%  
	    New File  		   4.2 m	index
 11%  
 23%  
 34%  
 46%  
 58%  
 69%  
 81%  
 93%  
100%  
	    New File  		      41	ORIG_HEAD
100%  
	  New Dir         14	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\hooks\
	    New File  		     478	applypatch-msg.sample
100%  
	    New File  		     896	commit-msg.sample
100%  
	    New File  		    4726	fsmonitor-watchman.sample
100%  
	    New File  		     189	post-update.sample
100%  
	    New File  		     424	pre-applypatch.sample
100%  
	    New File  		    1643	pre-commit.sample
100%  
	    New File  		     416	pre-merge-commit.sample
100%  
	    New File  		    1374	pre-push.sample
100%  
	    New File  		    4898	pre-rebase.sample
100%  
	    New File  		     544	pre-receive.sample
100%  
	    New File  		    1492	prepare-commit-msg.sample
100%  
	    New File  		    2783	push-to-checkout.sample
100%  
	    New File  		    2308	sendemail-validate.sample
100%  
	    New File  		    3650	update.sample
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\info\
	    New File  		     240	exclude
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\
	    New File  		   14667	HEAD
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\heads\
	    New File  		     183	master
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\
	  New Dir          2	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\origin\
	    New File  		     196	opam2
100%  
	    New File  		     196	sunset
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\1\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\12\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\13\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\2\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\20\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\21\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\3\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\4\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\5\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\8\
	    New File  		     195	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\logs\refs\remotes\pull\9\
	    New File  		     195	head
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\objects\
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\objects\info\
	  New Dir          3	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\objects\pack\
	    New File  		   5.9 m	pack-6784f930b7e18d43c7e272afc6eefb8154abf3a4.idx
  8.4%
 16.8%
 25.3%
 33.7%
 42.1%
 50.6%
 59.0%
 67.4%
 75.9%
 84.3%
 92.7%
100%  
	    New File  		  33.4 m	pack-6784f930b7e18d43c7e272afc6eefb8154abf3a4.pack
  2.9%
  5.9%
  8.9%
 11.9%
 14.9%
 17.9%
 20.9%
 23.9%
 26.8%
 29.8%
 32.8%
 35.8%
 38.8%
 41.8%
 44.8%
 47.8%
 50.8%
 53.7%
 56.7%
 59.7%
 62.7%
 65.7%
 68.7%
 71.7%
 74.7%
 77.6%
 80.6%
 83.6%
 86.6%
 89.6%
 92.6%
 95.6%
 98.6%
100%  
	    New File  		  887852	pack-6784f930b7e18d43c7e272afc6eefb8154abf3a4.rev
 29%  
 59%  
 88%  
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\heads\
	    New File  		      41	master
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\
	  New Dir          2	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\origin\
	    New File  		      41	opam2
100%  
	    New File  		      41	sunset
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\1\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\12\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\13\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\2\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\20\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\21\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\3\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\4\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\5\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\8\
	    New File  		      41	head
100%  
	  New Dir          1	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\remotes\pull\9\
	    New File  		      41	head
100%  
	  New Dir          0	c:\state\git\opam-repository-mingw-d64a4139a4794ed226a9b4244a0353abaadb899b\.git\refs\tags\

------------------------------------------------------------------------------

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :        40        40         0         0         0         0
   Files :        53        53         0         0         0         0
   Bytes :   44.58 m   44.58 m         0         0         0         0
   Times :   0:00:00   0:00:00                       0:00:00   0:00:00


   Speed :           172498276 Bytes/sec.
   Speed :            9870.430 MegaBytes/min.
   Ended : Sunday, June 22, 2025 1:37:56 AM

2025-06-23 01:47.15: Job failed: Disconnected: Switch turned off