)]}'
{
  "commit": "882efe0444c18a1868fd95fd539a654b59fb13a5",
  "tree": "80e120f8b8901159c671c5f9ad720af2a1b2fbeb",
  "parents": [
    "d50a5e8939abfc07c2ff97ae72e9330939b36ee0"
  ],
  "author": {
    "name": "Johannes Schindelin",
    "email": "johannes.schindelin@gmx.de",
    "time": "Wed Jun 11 15:54:37 2025 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Jun 11 10:01:14 2025 -0700"
  },
  "message": "ci(coverity): fix building on Windows\n\nWhen I added the Coverity workflow in a56b6230d0b1 (ci: add a GitHub\nworkflow to submit Coverity scans, 2023-09-25), I merely converted an\nAzure Pipeline definition that had been running successfully for ages.\n\nIn the meantime, the current Coverity documentation describes a very\ndifferent way to install the analysis tool, recommending to add the\n`bin/` directory to the _end_ of `PATH` (when originally, IIRC, it was\nrecommended to add it to the _beginning_ of the `PATH`).\n\nThis is crucial! The reason is that the current incarnation of the\nWindows variant of Coverity\u0027s analysis tools come with a _lot_ of DLL\nfiles in their `bin/` directory, some of them interferring rather badly\nwith the `gcc.exe` in Git for Windows\u0027 SDK that we use to run the\nCoverity build. The symptom is a cryptic error message:\n\n  make: *** [Makefile:2960: headless-git.o] Error 1\n  make: *** Waiting for unfinished jobs....\n  D:\\git-sdk-64-minimal\\mingw64\\bin\\windres.exe: preprocessing failed.\n  make: *** [Makefile:2679: git.res] Error 1\n  make: *** [Makefile:2893: git.o] Error 1\n  make: *** [Makefile:2893: builtin/add.o] Error 1\n  Attempting to detect unconfigured compilers in build\n  |0----------25-----------50----------75---------100|\n  ****************************************************\n  Warning:  Build command make.exe exited with code 2. Please verify that the build completed successfully.\n  Warning:  Emitted 0 C/C++ compilation units (0%) successfully\n\n  0 C/C++ compilation units (0%) are ready for analysis\n   For more details, please look at:\n      D:/a/git/git/cov-int/build-log.txt\n\nThe log (which the workflow is currently not configured to reveal) then\npoints out that the `windows.h` header cannot be found, which is _still_\nnot very helpful. The underlying root cause is that the `gcc.exe` in Git\nfor Windows\u0027 SDK determines the location of the header files via the\nlocation of certain DLL files, and finding the \"wrong\" ones first on the\n`PATH` misleads that logic.\n\nLet\u0027s fix this problem by following Coverity\u0027s current recommendation\nand append the `bin/` directory in which `cov-int` can be found to the\n_end_ of `PATH`.\n\nSigned-off-by: Johannes Schindelin \u003cjohannes.schindelin@gmx.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "124301dbbe2fc11b51102e6401f8c14f53c5fed2",
      "old_mode": 33188,
      "old_path": ".github/workflows/coverity.yml",
      "new_id": "d8a0497d596d4a41feb8473c89d281c9cd2522f9",
      "new_mode": 33188,
      "new_path": ".github/workflows/coverity.yml"
    }
  ]
}
