Skip to content

Revert atomic write refactoring

Ben Gamari requested to merge wip/revert-atomic-writes into master

This reverts !391 (merged), which seems to regress on Windows. Specifically the hsc2hs build fails with

C:\GitLabRunner\builds\28891e3c\0\ghc\ghc\tmp\ghcFD3.o.tmp: renameFile:renamePath:MoveFileEx "\\\\?\\C:\\GitLabRunner\\builds\\28891e3c\\0\\ghc\\ghc\\tmp\\ghcFD3.o.tmp" Just "\\\\?\\C:\\GitLabRunner\\builds\\28891e3c\\0\\ghc\\ghc\\tmp\\ghcFD3.o": does not exist (The system cannot find the file specified.)
make[1]: *** [utils/hsc2hs/ghc.mk:23: utils/hsc2hs/dist-install/package-data.mk] Error 1

See https://gitlab.haskell.org/ghc/ghc/-/jobs/37771.

Edited by Ben Gamari

Merge request reports