Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Move submodules along with projects, patches, and keys into single src dir #484

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

Merged
merged 2 commits into from
May 7, 2025

Conversation

MichaelSimons
Copy link
Member

Related to dotnet/source-build#5142

This is directory refactoring is to support migrating the text-only packages from SBRP to SBE. These changes are aiming to consolidate the files/directories to support submodule repos versus the soon to come text-only packages.

Original Directory Structure:

/
    eng
    keys
    patches
    repo-projects
    src
        <directory per submodules>
    extract-patches.sh
    extract-patches.cmd

New Directory Structure:

/
    eng
    src
        repos
            keys
            patches
            projects 
            src
                <directory per submodules>
        textOnlyPackages (coming soon)
            <directory per text-only package>

@MichaelSimons MichaelSimons requested review from mmitche and mthalman May 7, 2025 15:37
@MichaelSimons MichaelSimons requested a review from a team as a code owner May 7, 2025 15:37
Comment on lines 14 to 16
<KeysDir>$(ProjectDir)src/repos/keys/</KeysDir>
<SubmoduleDirectory>$(ProjectDir)src/repos/src/</SubmoduleDirectory>
<PatchesDir>$(ProjectDir)src/repos/patches/</PatchesDir>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What logic is dependent on this? I'm thinking these definitions should be relocated to a Directory.Build.props file in src/repos.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with d703753.

@MichaelSimons MichaelSimons force-pushed the dir-refactor branch 3 times, most recently from 5b3d4f1 to 439cc52 Compare May 7, 2025 19:19
@@ -31,7 +35,6 @@
<!-- _InitializeDotNetCli is used by websdk and templating to decide whether to init the SDK -->
<EnvironmentVariables Include="_InitializeDotNetCli=$(DotNetRoot)" />
<EnvironmentVariables Include="_DotNetInstallDir=$(DotNetRoot)" />
<EnvironmentVariables Include="_InitializeToolset=$(ProjectDir)Tools/source-built/Microsoft.DotNet.Arcade.Sdk/tools/Build.proj" Condition="'$(UseBootstrapArcade)' != 'true'" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is obviously out of date and not in use so I removed it since I would like to remove the ProjectDir property.

@@ -6,6 +6,10 @@
<TargetFramework>$(NetCurrent)</TargetFramework>
<RepositoryName>$(MSBuildProjectName)</RepositoryName>

<SrcReposDir>$(SrcDir)repos/</SrcReposDir>
<KeysDir>$(SrcReposDir)keys/</KeysDir>
<SubmoduleDirectory>$(SrcReposDir)src/</SubmoduleDirectory>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an opportunity to make the names more consistent - e.g. Dir vs Directory. This would expand the scope beyond the core intent.

@MichaelSimons MichaelSimons requested a review from mthalman May 7, 2025 19:37
@MichaelSimons MichaelSimons merged commit 96edf71 into dotnet:main May 7, 2025
2 checks passed
akoeplinger added a commit that referenced this pull request May 8, 2025
#484 moved the repos but the CredScanSuppressions.json wasn't updated.
akoeplinger added a commit that referenced this pull request May 8, 2025
#484 moved the repos but the CredScanSuppressions.json wasn't updated.
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.

2 participants