Skip to content

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

Merged
JoC0de merged 5 commits intomasterfrom
avoid-nupkg-unzip
Sep 29, 2023
Merged

Avoid unzipping .nupkg every time we need to read from .nuspec by saving .nuspec inside the package folder instead of .nupkg#570
JoC0de merged 5 commits intomasterfrom
avoid-nupkg-unzip

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 requested review from JoC0de and igor84 September 26, 2023 13:20
@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.

@popara96 popara96 requested a review from JoC0de September 28, 2023 08:14
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.

@popara96 popara96 requested a review from JoC0de September 28, 2023 13:29
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
@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

3 participants