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

fix: correctly prune within top level deps only #112

Merged
merged 1 commit into from
May 15, 2023

Conversation

JamesPatrickGill
Copy link
Member

The first implementation of pruning failed to scope pruning to the top level dependencies as the visited variable would be used per loop. This time we scope it by assigning a new visited object per loop if no visited set is passed.

@JamesPatrickGill JamesPatrickGill requested a review from a team as a code owner May 15, 2023 11:51
@JamesPatrickGill JamesPatrickGill force-pushed the fix/over-pruning-for-go-mod-fixed branch from ab00f59 to 4a05260 Compare May 15, 2023 11:51
@JamesPatrickGill JamesPatrickGill force-pushed the fix/over-pruning-for-go-mod-fixed branch from 4a05260 to e8af954 Compare May 15, 2023 13:06
@JamesPatrickGill JamesPatrickGill merged commit 3766a62 into master May 15, 2023
1 check passed
@JamesPatrickGill JamesPatrickGill deleted the fix/over-pruning-for-go-mod-fixed branch May 15, 2023 13:31
@snyksec
Copy link

snyksec commented May 15, 2023

🎉 This PR is included in version 1.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants