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

--include function of octo pack does not include top level folder when using nupkg #179

Open
donnybell opened this issue May 27, 2022 · 2 comments
Assignees

Comments

@donnybell
Copy link

The --include function of octo pack does not include a top-level folder when using nupkg. However, when using zip, this behaves as expected and does include the top-level folder.

Example 1:
The command below will result in a zip file that includes FolderA and inside FolderA it will have contents
octo pack --id="TestOctoPack" --format="zip" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"

Example 2:
The command below will result in a nupkg file that includes the contents of FolderA, not FolderA itself
octo pack --id="TestOctoPack" --format="nupkg" --version="1.0.0" --basePath="C:\SomeFolder\" --include=".\FolderA\**\*.*"

@hnrkndrssn
Copy link
Contributor

Unfortunately this is due to NuGet only preserving the path portion beginning with the wildcard so the top level folder (e.g. FolderA will not be included. I've tried to find a workaround but have not been able to find any way around it.

Zip works because the full path is preserved as we're not using NuGet when compressing zip files.

@hnrkndrssn hnrkndrssn self-assigned this May 31, 2022
@mottykohn
Copy link

In my experience this is only a problem in Linux; in MS Windows it works as expected - it does include the top-level in Windows but not in Linux.

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

No branches or pull requests

3 participants