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

Eliminate duplicate files in glob expansion #450

Merged
merged 2 commits into from
Mar 23, 2023
Merged

Eliminate duplicate files in glob expansion #450

merged 2 commits into from
Mar 23, 2023

Conversation

repr-man
Copy link
Contributor

No description provided.

@repr-man repr-man closed this Mar 23, 2023
@jemc jemc reopened this Mar 23, 2023
Sorry, I forgot to mention this change in our previous discussion.  The current behavior does not check the parent directory for manifest files.
For example, if the program is run from directory "/foo/bar/", `try_dirname` starts by being set to "/foo/bar/", and gets set to "/foo/" in line 259.  Then, it is checked for starting with "/foo/bar/" in line 260.  Since this is false, the loop only executes once.
With this change, `try_dirname` starts by being set to "/foo/bar/", gets set to "/foo/", and gets checked for starting with "/foo/".  The loop continues, `try_dirname` gets set to "/" and gets checked for starting with "/foo/".  Then, the loop ends.
@jemc
Copy link
Contributor

jemc commented Mar 23, 2023

Not sure what's up with the MacOS CI but I'll try to fix that issue in another PR ( #451 )

If the other CI checks pass for this one, I'll merge regardless of the MacOS failure.

@jemc jemc merged commit 74d21a7 into savi-lang:main Mar 23, 2023
@jemc
Copy link
Contributor

jemc commented Mar 23, 2023

Thanks for the fix!

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.

2 participants