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

Avoid unzipping .nupkg every time we need to read from .nuspec by saving .nuspec inside the package folder instead of .nupkg #570

Merged
merged 5 commits into from Sep 29, 2023

Conversation

popara96
Copy link
Collaborator

Backwards compatibility is managed by checking for .nupkg files and if there are some, we unpack .nuspec file from them and delete them. Tests have also been changed accordingly.

…d unzipping to read nuspec. Managed backwards compatibility and fixed tests
@popara96 popara96 linked an issue Sep 26, 2023 that may be closed by this pull request
@JoC0de
Copy link
Collaborator

JoC0de commented Sep 27, 2023

Hi,
The failing tests are the one that try to install a nuget package from a lokal package source. Most probably the issue is in the setup because it needs the .nupkg file from a previous install to create a lokal package source.

Copy link
Collaborator

@JoC0de JoC0de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to rebase, and there is one missing conversation

@popara96
Copy link
Collaborator Author

After this gets approved, I will push the squashed commit directly to master.

Copy link
Collaborator

@JoC0de JoC0de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@popara96 why directly pushing to master. I don't like when PRs are skipped as they ensure e.g. that the CI works. I would just squash the commits -> rebase -> merge PR. So we keep the link to the PR / it will be listed correctly inside the Release Nodes.

@igor84
Copy link
Collaborator

igor84 commented Sep 28, 2023

Does that mean we force push the branch after rebase + squash? We were not sure if we force push was allowed.

@JoC0de
Copy link
Collaborator

JoC0de commented Sep 28, 2023

Does that mean we force push the branch after rebase + squash? We were not sure if we force push was allowed.

Yes force-push on branches is allowed (not on main), you can do --force-with-leas so the complete history still exists. At leas I do it, but I always create branches on my fork. Without force-push it would be also possible but then you need to do a merge commit (I also prefer rebase over merging)

@JoC0de JoC0de merged commit 6936f0f into master Sep 29, 2023
8 checks passed
@JoC0de JoC0de deleted the avoid-nupkg-unzip branch September 29, 2023 06:29
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.

Store only nuspec instead of whole nupkg in package install folder
3 participants