-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CRLF as EOL #3566
Use CRLF as EOL #3566
Conversation
06a4719
to
52d9034
Compare
@superyyrrzz , could you provide some assistance on this pull request? |
@akihikodaki Could you provide more background about this pull request? We can see this change is failing CI for now. |
GenerateMetadataFromCSUnitTest.cs and possibly more assume their EOLs are CRLF.
387dbb3
to
12795c9
Compare
@superyyrrzz Well, I tried to use We have three options to solve the issue:
|
@akihikodaki Option 1 should be the cleanest solution. I will update git on CI. It seems 2.6.2 is a too old version... |
Latest version (2.19.1) installed. You can continue your change. @akihikodaki |
It looks like failing because of a bug in if ($commitInfo.length -gt 1) {
$revision = (Get-Date -UFormat "%Y%m%d").Substring(2) + $commitInfo[1].PadLeft(3, '0')
}
else {
$revision = '000000000'
}
|
This is a logic to calculate package name. If it got Why do you think here is a bug? I see from the CI report that it still failed when extracting metadata. |
I was wrong but I think I identified the real cause. I checked the end of the build log to find it says:
Indeed
You have to drop some information from the special version part. What will you drop then? |
@akihikodaki As this string is used as part of the package version, the length of each Line 139 in 9f9b08e
|
The release note of Git 2.11.0 says: > * The default abbreviation length, which has historically been 7, now > scales as the repository grows, using the approximate number of > objects in the repository and a bit of math around the birthday > paradox. The logic suggests to use 12 hexdigits for the Linux kernel, > and 9 to 10 for Git itself. However, special version string cannot include too long values. This change limits the length to 7, the number traditionally used.
The suggested change was applied as e587af6 and it finally passed the CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akihikodaki Thank you for your contribution! /cc @928PJY
GenerateMetadataFromCSUnitTest.cs
and possibly more assume their EOLs are CRLF.