chore(ci): disable long file names in GetInterestingTempDirectoryName() when ENABLE_LONG_FILENAMES=false
@@ -34,7 +34,10 @@ func GetInterestingTempDirectoryName() (string, error) {
// make sure the base directory is quite long to trigger very long filenames on Windows.
if n := len(td); n < targetLen {
+ if !ShouldSkipLongFilenames() {
td = filepath.Join(td, strings.Repeat("f", targetLen-n))
+ }
+
//nolint:gomnd
if err := os.MkdirAll(td, 0o700); err != nil {
return "", errors.Wrap(err, "unable to create temp directory")
