Skip to content
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

Lowercase TargetOS #80164

Merged
merged 3 commits into from
Jan 11, 2023
Merged

Lowercase TargetOS #80164

merged 3 commits into from
Jan 11, 2023

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Jan 4, 2023

Follow-up on #32451 (comment)
Follow-up on #80074

In #43651, the "Windows" OS name was lowercased to achieve target frameworks with RIDs in them. At that time, the original plan was to lowercase all TargetOS values but that had to be cut because of resources. This PR finishes that and updates build systems, YML, markdowns and managed components.

To not break existing developer workflows, the passed-in -os value is automatically lower-cased in the script entry points and validated in the msbuild entry point.

This change was performed via

  1. Manual "Find & Replace"**: <OS> -> <os> for all the possible OS values that we support (i.e. Browser -> browser) in msbuild, cmake, docs, etc.
  2. Trial & Error to fix build failures
  3. Looking through all the commits that went in between the Find & Replace was performed and now (Jan 10th) and performing the same operation again

@ghost ghost assigned ViktorHofer Jan 4, 2023
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ViktorHofer
Copy link
Member Author

/azp list

@azure-pipelines
Copy link

CI/CD Pipelines for this repository:

@ViktorHofer
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ViktorHofer ViktorHofer changed the title [WIP] Lowercase TargetOS Lowercase TargetOS Jan 5, 2023
@ViktorHofer ViktorHofer force-pushed the LowercaseTargetOS branch 3 times, most recently from 376ad4c to acff22e Compare January 10, 2023 14:56
eng/native/build-commons.sh Outdated Show resolved Hide resolved
eng/native/gen-buildsys.sh Outdated Show resolved Hide resolved
eng/native/init-os-and-arch.sh Outdated Show resolved Hide resolved
src/mono/CMakeLists.txt Outdated Show resolved Hide resolved
@ViktorHofer ViktorHofer merged commit 2ca7cf7 into dotnet:main Jan 11, 2023
@ViktorHofer ViktorHofer deleted the LowercaseTargetOS branch January 11, 2023 16:58
@EgorBo
Copy link
Member

EgorBo commented Jan 11, 2023

Just updated my local main:

image

I assume it needs git clean -ffddxx ?

@ViktorHofer
Copy link
Member Author

Sorry for the inconvenience and thanks for reporting. Just submitted a fix: #80544

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants