Skip to content

pkg/gitutils.TestCheckoutGit fails depending on gitconfig core.autocrlf #23152

@AkihiroSuda

Description

@AkihiroSuda

Steps to reproduce the issue:

$ git config --get core.autocrlf
$ go test ./pkg/gitutils

Tested with 4a7715c

Describe the results you received:

OS core.autocrlf Result
Linux true FAIL
Linux false/unset PASS
Windows true PASS
Windows false/unset FAIL

failure message:

--- FAIL: TestCheckoutGit (0.04s)
        gitutils_test.go:201: Expected FROM scratch
                EXPOSE 5000, was FROM scratch
                EXPOSE 5000
FAIL

Describe the results you expected:
It should not fail.

Additional information you deem important (e.g. issue happens only occasionally)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions