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

Add bazel mod dump_repo_mapping #18990

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Jul 19, 2023

No description provided.

@fmeum fmeum force-pushed the dump-repo-mapping branch 2 times, most recently from c9ec791 to 07b70b9 Compare July 20, 2023 10:06

public static void dumpRepoMapping(BazelDepGraphValue depGraphValue, Writer writer) {
try (JsonWriter jsonWriter = new JsonWriter(writer)) {
jsonWriter.beginObject();
Copy link
Member

Choose a reason for hiding this comment

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

overall looks good! just one minor thing -- IMO JsonWriter is a bit too low-level for this; using JsonObject, JsonArray etc would be much more readable (and I doubt memory usage of bazel mod dump_repo_mapping is of any concern). See JsonOutputFormatter for an example.

@fmeum
Copy link
Collaborator Author

fmeum commented Dec 29, 2023

Superseded by #20686

@fmeum fmeum closed this Dec 29, 2023
@fmeum fmeum deleted the dump-repo-mapping branch December 29, 2023 16:13
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