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: stable generated exports #313

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Conversation

hyf0
Copy link
Member

@hyf0 hyf0 commented Nov 17, 2023

Description

Closes #312.

Test Plan


@hyf0
Copy link
Member Author

hyf0 commented Nov 17, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@@ -31,7 +31,8 @@ impl Chunk {
}
}

let export_items = self.get_export_items(graph);
let mut export_items = self.get_export_items(graph);
export_items.sort_unstable_by(|a, b| a.0.as_str().cmp(b.0.as_str()));
Copy link
Contributor

Choose a reason for hiding this comment

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

The OutputChunk exports is also used it, Could you sort it at get_export_items? Other linking_info .sorted_exports() is also sorted, you only sort the exports_to_other_chunks exports is ok.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool.

@hyf0 hyf0 force-pushed the 11-17-fix_stable_generated_exports branch from ea53af3 to d7d3b40 Compare November 17, 2023 12:02
@hyf0 hyf0 merged commit 526a04b into main Nov 17, 2023
@hyf0 hyf0 deleted the 11-17-fix_stable_generated_exports branch November 17, 2023 12:05
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.

Unstable generated exports
2 participants