Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[dev/release/2.0.0] Implement auto dependency flow Repo API #14518

Merged
merged 6 commits into from
Oct 17, 2017

Conversation

dagood
Copy link
Member

@dagood dagood commented Oct 16, 2017

Most changes here aren't necessary for auto dependency flow yet (dotnet/source-build#200) because these are only test dependencies, but this aligns the naming for the future and adds the dependency override Import.

The PackageOutputPath override change is needed now: it allows the implementation in BuildTools to set the value rather than always using the hard-coded one.

Applies to test dependency restore.
@@ -17,18 +17,14 @@
<CoreClrCurrentRef>96793f61d3d482bcb59326c18a75bce39971c55f</CoreClrCurrentRef>
</PropertyGroup>

<!-- Auto-upgraded properties for each build info dependency. -->
<!-- Tests/infrastructure dependency versions. -->
<PropertyGroup>
<CoreFxExpectedPrerelease>servicing-25727-01</CoreFxExpectedPrerelease>
Copy link
Member

Choose a reason for hiding this comment

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

slightly orthogonal but we should probably eliminate this and instead include the exact package versions.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, I'll add this change. Makes sense to me to do it in this PR since it'll fall in orchestrator scope once it builds tests.

@dagood dagood changed the title [dev/release/2.0.0] Standardize dependencies.props names to Repo API [dev/release/2.0.0] Implement auto dependency flow Repo API Oct 16, 2017
@dagood
Copy link
Member Author

dagood commented Oct 16, 2017

After trying a build when working on the source-build side, I saw that CoreCLR wasn't taking the PackageOutputPath that's implemented in BuildTools. I added a commit that lets it get overridden. (Verifying with a build now.) This PR is needed for dotnet/source-build#200 after all.

tests/dir.props Outdated
https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json;
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
https://api.nuget.org/v3/index.json;
$(OverridePackageSource);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need $(OverridePackageSource)?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I'll remove--leftover from copying from CoreFX.

Copy link
Member

Choose a reason for hiding this comment

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

While I don't want to change this here I wish they used OverridePackageSource instead hardcoding the AzureTransfer path behind the OverwriteCoreCLRPackageVersion property. @dagood would you mind filing an issue for that to make it consistent?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dagood
Copy link
Member Author

dagood commented Oct 16, 2017

I hit a restore problem when trying to use this in source-build and added a fix. Sorry for the bumpiness--I made sure builds worked and put the packages in the right place on Win and Fedora this time.

NuGet.props Outdated
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
https://api.nuget.org/v3/index.json;
$(RestoreSources)
</RestoreSources>
Copy link
Member Author

Choose a reason for hiding this comment

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

Note this new file to hold the shared sources. Since tests/dir.props doesn't import dir.props I had to have this in some other file.

This could also go in dependencies.props, which both dir.props files already import. At first I didn't like that, but now I'm thinking it kind of makes sense since RestoreSources is dependency-related. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I think it is fine to go into dependencies.props.

CoreCLR normally depends on src/NuGet.Config. However, passing any override source makes the NuGet.Config not used at all, which fails package restore. The fix is to start using the RestoreSources property. I used the shared dependencies.props file to avoid duplicating URLs in dir.props and tests/dir.props.
@dagood dagood merged commit 63d773d into dotnet:dev/release/2.0.0 Oct 17, 2017
@dagood dagood deleted the flow branch October 17, 2017 00:47
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 25, 2017
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 25, 2017
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 25, 2017
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 26, 2017
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 27, 2017
weshaggard added a commit to weshaggard/coreclr that referenced this pull request Oct 30, 2017
briansull pushed a commit to briansull/coreclr that referenced this pull request Oct 31, 2017
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.

4 participants