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

Package testing shouldn't hard code restore sources #53810

Closed
ViktorHofer opened this issue Jun 7, 2021 · 5 comments
Closed

Package testing shouldn't hard code restore sources #53810

ViktorHofer opened this issue Jun 7, 2021 · 5 comments
Labels
area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner
Milestone

Comments

@ViktorHofer
Copy link
Member

<RestoreSources>
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json;
$(LocalPackagesPath)
</RestoreSources>

The RestoreSources property is hardly used anymore as it doesn't support authentication and instead we specify the restore sources in the repo's NuGet.config file. We probably want to copy that file next to the test app so that the restore sources aren't duplicated.

cc @Anipik @ericstj @safern @joperezr

@ghost
Copy link

ghost commented Jun 7, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

<RestoreSources>
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json;
$(LocalPackagesPath)
</RestoreSources>

The RestoreSources property is hardly used anymore as it doesn't support authentication and instead we specify the restore sources in the repo's NuGet.config file. We probably want to copy that file next to the test app so that the restore sources aren't duplicated.

cc @Anipik @ericstj @safern @joperezr

Author: ViktorHofer
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 7, 2021
@ViktorHofer ViktorHofer added this to the 6.0.0 milestone Jun 7, 2021
@safern
Copy link
Member

safern commented Jun 7, 2021

We probably want to copy that file next to the test app so that the restore sources aren't duplicated.

For the LocalPackagesPath would you have a placeholder and replace it before copying the file to the test app folder?

@ericstj
Copy link
Member

ericstj commented Jun 7, 2021

Maybe we can just use RestoreAdditionalProjectSources for LocalPackagesPath

@safern
Copy link
Member

safern commented Jun 7, 2021

I didn't know that property existed, good to know.

@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Jun 7, 2021
@ViktorHofer
Copy link
Member Author

That was fixed via #53905

@ghost ghost locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants