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

Conversation

riarenas
Copy link
Member

@riarenas riarenas commented Sep 3, 2019

Saw this while validating #3607

Some common extensions for repos that publish blobs are getting assigned the default category.

@@ -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 :)

{ ".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.

@riarenas riarenas merged commit e81a656 into dotnet:master Sep 4, 2019
@riarenas riarenas deleted the riarenas/add-missing-extensions branch September 4, 2019 15:41
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.

4 participants