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(core): use for of on loop on project Map #661

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

exocom
Copy link
Contributor

@exocom exocom commented Mar 22, 2023

Fixes #646

Turns out the loop was being skipped over. In JS for in will not iterate a Map. Switched to a for of loop.

NOTES:

Have a unit test but did not include it because fast glob is running against the file system so the unit test is rigged.
fast glob is supposed to support an fs option to use an alternative file system, however, I could not get this to work with tree. Adding a virtual file system was out of scope since this is a single line fix.

@nx-cloud
Copy link

nx-cloud bot commented Mar 22, 2023

@AgentEnder
Copy link
Member

Good news! this fix works.
Bad news! We can tell the fix works because a previous unit test correctly fails.


I'll patch up the unit test.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AgentEnder AgentEnder merged commit c9d31d7 into nx-dotnet:master Mar 22, 2023
github-actions bot pushed a commit that referenced this pull request Mar 22, 2023
## [1.21.1](v1.21.0...v1.21.1) (2023-03-22)

### Bug Fixes

* **core:** use for of on loop on project Map ([#661](#661)) ([c9d31d7](c9d31d7))

Mar 22, 2023, 11:13 PM
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@exocom exocom deleted the restore-generator-map branch March 23, 2023 18:20
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] thinks all projects are .NET projects
2 participants