Avoid unzipping .nupkg every time we need to read from .nuspec by saving .nuspec inside the package folder instead of .nupkg by popara96 · Pull Request #570 · GlitchEnzo/NuGetForUnity (original) (raw)

@popara96

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.

@popara96

…d unzipping to read nuspec. Managed backwards compatibility and fixed tests

@popara96 popara96 linked an issue

Sep 26, 2023

that may beclosed by this pull request

@JoC0de

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.

igor84

@popara96

JoC0de

@popara96

JoC0de

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

@popara96

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

JoC0de

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

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

@JoC0de

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 JoC0de deleted the avoid-nupkg-unzip branch

September 29, 2023 06:29

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})