Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Allow including source control metadata in Publish-Module #576

Closed

Description

Is it reasonable to allow Publish-Module to include source control metadata? That is the following:

  • type (git|tfs|svn|etc...)
  • url
  • branch
  • commit

The nuspec allows for including this metadata in the nuspec.

If so, I've two overall ideas.

  1. Pull this data from the PSData, in a similar manner as the LicenseUri.
    This would require changes to New-NuSpecFile and Publish-PSArtifactUtility. And I think that's all. Developers would have to find their own process for injecting that into their PSData, however if they are using CI/CD process then they may be able to do this within a reasonable amount of effort.
  2. Allow this to be specified as a parameter to Publish-Module.
    This would require changes to the same functions as above, along with Publish-Module itself. Though this option would be easier for a CI/CD process to integrate with.

I also have a third idea, but that is allowing developers to specify their own nuspec and adjusting as needed during the Publish-Module process. However I think the changes that would require would be too large. But I wanted to mention it as an idea.

Activity

  1. ThomasNieto commented on Jan 27, 2020

    @ThomasNieto
    Contributor

    PowerShellGet is currently being redesigned. You should place your comment in PowerShell/PowerShell-RFC#237 for your feature be heard.

  2. davidroberts63 commented on Jan 27, 2020

    @davidroberts63
    Author

    Will do. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions