Skip to content

[Bug]: lakectl local clone does not update .gitignore correctly on Windows #10449

Description

@chrisbutulis

What happened?

When using lakectl local clone on Windows, the .gitignore is automatically updated, but uses the Windows filepath syntax (i.e. input* instead of the git-conforming input/*) causing the ignored files to be uploaded to remote storage instead of ignored.

Steps to Reproduce:
2. Use lakectl clone on a Windows computer
3. Observe that the automatic .gitignore additions use Windows filepath syntax
4. Run git add -A
5. Run git status
6. Observe that all of the gitignored files are tracked by git

Expected behavior

Expected the automatic .gitignore additions to use the forward slash on Windows so the .gitignore functions correctly.

lakeFS version

lakefs 1.82.0

How lakeFS is installed

Locally on Windows using the .exe available on GitHub

Affected clients

lakectl 1.82.0

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions