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

Add more extensions and categories to publish #3824

Merged
merged 1 commit into from
Sep 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,12 @@ private string InferCategory(string assetId)
{ ".SHA", "CHECKSUM" },
{ ".POM", "MAVEN" },
{ ".VSIX", "VSIX" },
{ ".CAB", "BINARYLAYOUT" },
Copy link
Contributor

Choose a reason for hiding this comment

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

While this list seems to be complete, the fact of having to keep this updated makes me feel a bit off. At the same time, I don't think we can have the package read some sort of config file which is not part of the package itself (so a change on this list doesn't need a full build -> version push) in case this needs to be source build (no internet) so I guess this is ok :)

{ ".TAR", "BINARYLAYOUT" },
{ ".GZ", "BINARYLAYOUT" },
{ ".TGZ", "BINARYLAYOUT" },
{ ".EXE", "INSTALLER" },
{ ".SVG", "BADGE"}
Copy link
Contributor

Choose a reason for hiding this comment

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

The categories listed here should have a matching category+target feed config here: https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/SetupTargetFeeds.proj otherwise the packages of that category won't be published. The BADGE category doesn't have a TFC.

Copy link
Member Author

Choose a reason for hiding this comment

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

I need a new version of the task that includes the category, otherwise I get an error when trying to use the BADGE category

Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to remove the need for this mapping here? It means we have to update DefaultVersions.props every time we have a new category.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ricardo and I talked about this. He's going to create an issue for it.

Copy link
Member Author

Choose a reason for hiding this comment

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

We should definitely look at a better way to handle these and had some discussion with @JohnTortugo and @jcagme that I captured in #3828

I'm first trying to unblock the core-sdk migration by adding these.

I can also simply have the PublishInstallers feedConfig just publish the NETCORE category which is the fallback category and that would encompass everything that gets published to the main feeds.

Let me know if you'd rather I take that approach.

};

if (whichCategory.TryGetValue(extension, out var category))
Expand Down