-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Use arcade dependency management (#729)
- Loading branch information
Showing
16 changed files
with
103 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ | |
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project> | ||
<Import Condition="'$(SampleProject)' != 'true' and '$(CI)' == 'true'" Project="eng\Git.Build.targets" /> | ||
<Import Condition="'$(SampleProject)' != 'true' and '$(CI)' == 'true' " Project="eng\Version.targets" /> | ||
<Import Condition="'$(SampleProject)' != 'true' and '$(CI)' == 'true' " Project="eng\Versions.targets" /> | ||
<Import Project="eng\AndroidX.targets" /> | ||
<Import Project="eng\Microsoft.Extensions.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
The `eng` folder contains and is used by parts of the https://github.com/dotnet/arcade SDK. | ||
|
||
## Dependency Management | ||
The Arcade SDK contains a tool known as [`darc`][0], which can be used to manage | ||
and query the relationships between repositories in the dotnet ecosystem. | ||
|
||
The `eng/Version.Details.xml` and `eng/Versions.props` files contain information | ||
about the products and tooling that this repository depends on. | ||
|
||
Many dotnet repositories use a publishing workflow that will push build artifact data | ||
to a central location known as the "Build Asset Registry". This data includes | ||
a "channel" association, which is used to determine when an update for a particular | ||
product or tool is available. Local updates and automatic update "subscriptions" | ||
compare the version files in the repository against the versions avalable in the | ||
channel that you are interested in. The `darc` tool is used facilitate these updates. | ||
|
||
To work with `darc` locally, see the [setting up your darc client docs][1]. | ||
You'll need to run a script in the dotnet/arcade repo to install the dotnet global | ||
tool, join the `arcade-contrib` GitHub team, and run the [`darc authenticate`][2] | ||
command to add the PATs required by the tool. | ||
|
||
The GitHub PAT that you add must have the full `repo` scope enabled if you want to | ||
work with any of the `subcription` commands. Subscriptions control the automated | ||
creation of dependency update pull requests. | ||
|
||
|
||
To add a new dependency, run the [`darc add-dependency`][3] command at the root | ||
of the repository: | ||
``` | ||
darc add-dependency -n Microsoft.Dotnet.Sdk.Internal -t product -v 6.0.0-preview.2.21154.6 -r https://github.com/dotnet/installer | ||
``` | ||
|
||
To update all dependencies, use the [`darc update-dependencies`][4] command: | ||
``` | ||
darc update-dependencies --channel ".NET 6" | ||
``` | ||
|
||
To configure automatic updates, use the [`darc add-subscription`][5] command | ||
to enroll a target repo/branch into updates from a particular channel: | ||
``` | ||
darc add-subscription --channel ".NET 6" --source-repo https://github.com/dotnet/installer --target-repo https://github.com/dotnet/maui --target-branch main --update-frequency everyWeek --standard-automerge | ||
``` | ||
|
||
Once a subscription is configured, pull requests will be created automatically | ||
by the dotnet Maestro bot whenever dependency updates are available. | ||
|
||
Subscriptions need to be manually managed at this time. For example, when a | ||
release branch is created, someone with `darc` installed locally will need to | ||
run the `add-subscription` command to configure updates against that new branch. | ||
|
||
|
||
[0]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md | ||
[1]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md#setting-up-your-darc-client | ||
[2]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md#authenticate | ||
[3]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md#add-dependency | ||
[4]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md#update-dependencies | ||
[5]: https://github.com/dotnet/arcade/blob/ea609b8e036359934332480de9336d98fcbb3f91/Documentation/Darc.md#add-subscription |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Dependencies> | ||
<ProductDependencies> | ||
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-preview.3.21202.5" CoherentParentDependency="Microsoft.Android.Sdk.Windows"> | ||
<Uri>https://github.com/dotnet/installer</Uri> | ||
<Sha>aee38a6dd446b512b1ae510d80d2ed1c1f24e79a</Sha> | ||
</Dependency> | ||
<Dependency Name="Microsoft.Android.Sdk.Windows" Version="11.0.200-preview.3.196"> | ||
<Uri>https://github.com/xamarin/xamarin-android</Uri> | ||
<Sha /> | ||
</Dependency> | ||
<Dependency Name="Microsoft.MacCatalyst.Sdk" Version="14.3.100-preview.3.471"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha /> | ||
</Dependency> | ||
<Dependency Name="Microsoft.iOS.Sdk" Version="14.4.100-preview.3.1326"> | ||
<Uri>https://github.com/xamarin/xamarin-macios</Uri> | ||
<Sha /> | ||
</Dependency> | ||
</ProductDependencies> | ||
</Dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<Project> | ||
<!--Package versions--> | ||
<PropertyGroup> | ||
<MicrosoftNETSdkPackageVersion>6.0.100-preview.3.21202.5</MicrosoftNETSdkPackageVersion> | ||
<MicrosoftAndroidSdkPackageVersion>11.0.200-preview.3.196</MicrosoftAndroidSdkPackageVersion> | ||
<MicrosoftDotnetSdkInternalPackageVersion>6.0.100-preview.3.21202.5</MicrosoftDotnetSdkInternalPackageVersion> | ||
<MicrosoftAndroidSdkWindowsPackageVersion>11.0.200-preview.3.196</MicrosoftAndroidSdkWindowsPackageVersion> | ||
<MicrosoftMacCatalystSdkPackageVersion>14.3.100-preview.3.471</MicrosoftMacCatalystSdkPackageVersion> | ||
<MicrosoftiOSSdkPackageVersion>14.4.100-preview.3.1326</MicrosoftiOSSdkPackageVersion> | ||
</PropertyGroup> | ||
</Project> | ||
</Project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"MSBuild.Sdk.Extras": "3.0.23", | ||
"Microsoft.Build.NoTargets": "2.0.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<Project> | ||
<Import Project="../../../eng/Version.props" /> | ||
<Import Project="../../../eng/Versions.props" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters