-
Notifications
You must be signed in to change notification settings - Fork 224
Figure out what the default author should be in NUPKGs we generate #208
Comments
How about getting this value from the git settings? For example the git username? |
Sounds like a fair assumption but there'd need to be fallbacks for when there's no git repo found. Are the |
Actually, how about having another property in the You could even expand it out to grab the readme, source repo, etc from there, and since there's already some synchronisation between kproj and package.json I don't see why VS couldn't have it exposed too. |
ENV variables I think are the way to go here. We just need good defaults that don't invovle shelling out to git 😉. @aaronpowell Those attributes all exist but I think we want to be as DRY as possible and keep assembly info down to a minimum. The project.json is the source of truth for assembly metadata and package metadata. You can always override that with assembly attributes but we want that to be the exception. |
We can already specify authors, the question is about defaults |
Oh right, I didn't know it could be specified (I haven't looked at the JSON schema for project.json). Maybe make it a mandatory node in the JSON? In |
I am going to use the following strategy to determine the default author:
@Eilon @davidfowl please let me know your thoughts. |
I'm not sure you ever want to use a user's login name as the package author. I bet for every single person I know it would be the wrong value... even you 😄 I kind of feel this should be a more specific key for "package author". I bet quite often the "author" will be a company/organization and not a person. |
We can use a new env var like |
Was having a separate chat with @davidfowl earlier about how to specify general defaults for all kinds of project/NuGet settings, such as license, copyright, etc. So this might be a more general discussion regarding all kinds of project settings that a developer would want to share among their projects. |
I see, if a big set of information is shared, it brings a lot of convenience. |
On line 143 of this file:
https://github.com/aspnet/KRuntime/blob/dev/src/Microsoft.Framework.Project/BuildManager.cs#L143
The default author is "K". I presume the default should just be blank, or perhaps we pick up from an env var or something else.
But when we make this change we also need to make sure that for our own packages we generate "Microsoft" as the author - perhaps by modifying project.json files or env vars or something.
The text was updated successfully, but these errors were encountered: