Skip to content

Long paths aren't enabled on Windows image #966

@lemeurherveCB

Description

@lemeurherveCB

Jenkins and plugins versions report

Environment
N/A

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A

Reproduction steps

Long paths aren't currently enabled on Windows images.

Doc: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#registry-setting-to-enable-long-paths

Expected Results

Long paths are enabled on Windows images.

Actual Results

Long paths are not enabled.

Ref:

Anything else?

Note that enabling this won't directly allow using long paths with Windows images since it's broken in Git for Windows since its v2.48.1. Ref:

But at least it will be enabled for when a new version of Git for Windows will be released.

I've opened a PR to add a test checking long paths in #962, confirmed passing with Git for Windows v2.47.0, and failing with newer Git for Windows versions (up to v2.49.0 at the moment).
Keeping that PR in draft until a new Git For Windows version restores the functionality.

Additionally, we could add to the README that long paths are broken for Windows images as known issues.

Are you interested in contributing a fix?

Yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions