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

Reducing duplicate information passed by go_pkg_info_aspect #3111

Merged
merged 2 commits into from
Apr 14, 2022

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Apr 10, 2022

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
This PR consolidates two sets of data (transitive_* and deps_transitive_*) in GoPkgInfo into one set, and let depset to perform necessary deduplication. It also takes the approach proposed by @skevy in #3053 (comment) to remove the duplicate JSON files written by go_pkg_info_aspect for go_test.

The test fixture was taken from https://github.com/csstaub/gopackagesdriver-repro, credits to @csstaub

Which issues(s) does this PR fix?

Fixes #2948

Other notes for review
@aignas FYI

@linzhp linzhp requested review from achew22, blico and steeve April 10, 2022 14:53
go/tools/gopackagesdriver/aspect.bzl Outdated Show resolved Hide resolved
go/tools/gopackagesdriver/aspect.bzl Outdated Show resolved Hide resolved
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.

Go packages driver sometimes doesn't work with test files
2 participants