Skip to content

Support long paths on Windows when creating & downloading artifacts

Stefan requested to merge stefanhamburger/gitlab-runner:fix-3690-long-paths into main

After downloading artifacts, unzipping may fail on Windows if the target file name is too long.

Go has built-in support for long path names on all file-related functions but only for absolute paths. Therefore, this MR adds filepath.Abs() to zip_extract and zip_extra to ensure that the paths will be handled correctly on Windows.

Closes #3690

Edited by Stefan

Merge request reports