Skip to content

Add missing Open Packaging Conventions files to NuGet packages #508

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

salvois
Copy link

@salvois salvois commented Apr 2, 2025

This adds to .nupkg packages created by octopus package nuget create files required by Open Packaging Conventions, such as:

  • /package/services/metadata/core-properties/<uuid>.psmdcp
  • /_rels/.rels
  • [Content_Types].xml

so that the package contains appropriate metadata that is looked for by repositories such as Artifactory.
Fixes #477

This is my first ride with Go, so please excuse me for some rough edges.
I tried to keep the original style and ways of working of the surrounding code, such as writing files to the file system before adding them to the ZIP package, and not escaping values written into XML files, though they may be useful improvements.

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2025

CLA assistant check
All committers have signed the CLA.

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.

octopus package nuget create generates invalid NuGet packages
2 participants