Skip to content

[ICU 68.1 Update] The "tools/cldr/.gitignore" shouldn't ignore already checked-in files. - #52

Merged
Erin Genovy (jefgen) merged 1 commit into
masterfrom
user/jefgen/icu68-update-add-gitignored-files
Dec 7, 2020
Merged

Erin Genovy (jefgen) merged 1 commit into
masterfrom
user/jefgen/icu68-update-add-gitignored-files

Conversation

@jefgen

@jefgen Erin Genovy (jefgen) commented Dec 6, 2020 •

Copy link
Copy Markdown
Member

This is part 3 of N for updating to ICU 68.1.

It's generally considered a bad practice or an anti-pattern to have files checked-into a git repo which are at the same time also excluded by .gitignore file(s) in the repo as well.

These two files are used/needed by the CLDR-to-ICU data build process.

However, I accidentally removed them in the previous commit/PR, as there is a checked-in .gitignore file which excludes them. (This means when coping from one repo/clone to another repo/clone the files won't get added.)

This commit adds them back, and also add an exclusion to the .gitignore file so that they don't get ignored.

I filed an upstream ICU ticket for this here as well:
https://unicode-org.atlassian.net/browse/ICU-21427

Note: The CI builds for this PR will fail and that is expected. I will be updating the CI pipelines later on afterwards, but that needs to be done as a separate commit. For now I will bypass the checks.

Summary

PR Checklist

  • I have verified that my change is specific to this fork and cannot be made upstream.
  • I am making a maintenance related change.
  • I am making a change that is related to usage internal to Microsoft.
  • I am making a change that is related to the Windows OS build of ICU.
  • CLA signed. If not, please see here to sign the CLA.

It's generally considered a bad practice or an anti-pattern to have files
checked-into a git repo which are at the same time also excluded by
.gitignore file(s) in the repo as well.

These two files are used by the CLDR-to-ICU data build process. However,
I accidentally removed them in the previous commit/PR, as there is a
checked-in .gitignore file which excludes them. (This means when coping
from one repo/clone to another repo/clone the files won't get added.)

This commit adds them back, and also add an exclusion to the .gitignore
file so that they don't get ignored.

I filed an upstream ICU ticket for this here as well:
https://unicode-org.atlassian.net/browse/ICU-21427
@jefgen
Erin Genovy (jefgen) merged commit 5354bf4 into master Dec 7, 2020
@jefgen
Erin Genovy (jefgen) deleted the user/jefgen/icu68-update-add-gitignored-files branch December 7, 2020 23:45
Erin Genovy (jefgen) added a commit that referenced this pull request Jan 20, 2021
This change cherry-picks two tickets from the upstream ICU repo that were merged after the ICU 68.2 release.

- ICU-21427 Don't ignore already checked-in files under "tools/cldr/lib"
- ICU-21118 check that dst and src are not null in uprv_memcpy

The first one I had already done with #52, so this is mostly just making an update for the comments and to record it in the `changelog.md` file.

The second one was fixed by @erik0686, and prevents undefined behavior in `ultag_parse`.

CP: ICU-21118 check that dst and src are not null in uprv_memcpy
https://unicode-org.atlassian.net/browse/ICU-21118
unicode-org/icu#1489

CP: ICU-21427 Don't ignore already checked-in files under "tools/cldr/lib"
https://unicode-org.atlassian.net/browse/ICU-21427
unicode-org/icu#1500

Update changelog.md for cherry-picked tickets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants