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

fixed #12145 - provided order of source files is not preserved #5625

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Nov 5, 2023

No description provided.

@firewave
Copy link
Collaborator Author

firewave commented Nov 5, 2023

This is also required to move the file sorting based on the markup extensions to the shared code.

else {
const int err = errno;
return "could not stat file '" + new_path + "' (errno: " + std::to_string(err) + ")";
}
}
}
}

filesSorted.sort([](const decltype(filesSorted)::value_type& a, const decltype(filesSorted)::value_type& b) {
Copy link
Collaborator Author

@firewave firewave Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files inside the folder still need to be sorted as the order retrieved from the filesystem is random.

I did not add an explicit test for this as this is implicitly tested by dmake. The order of the files were different in the generated files before I added the sorting.

@firewave firewave marked this pull request as ready for review November 6, 2023 18:14
@danmar danmar merged commit bc174c5 into danmar:main Nov 7, 2023
65 checks passed
@firewave firewave deleted the filevector branch November 7, 2023 22:10
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