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

People who use gqlgen as a library get errors following #2598 #3431

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

StevenACoffman
Copy link
Collaborator

@StevenACoffman StevenACoffman commented Dec 10, 2024

In #2598 there was a slight performance enhancement to cache gqlgen's own packages (such as scalars). However, this used introspective runtime debug.ReadBuildInfo() to try to figure out what packages those were.

The problem for those using gqlgen as a library is that it then would never reload anything.

If you are using a fork of gqlgen (and have modified the go.mod module name) as an executable, it is possible you will have a slight increase in package load times as a result of this change.

Signed-off-by: Steve Coffman steve@khanacademy.org

Signed-off-by: Steve Coffman <steve@khanacademy.org>
@coveralls
Copy link

Coverage Status

coverage: 73.503% (+0.07%) from 73.433%
when pulling 2beea9f on reload_packages
into 26220f6 on master.

@StevenACoffman StevenACoffman merged commit 7ba0197 into master Dec 10, 2024
18 checks passed
@StevenACoffman StevenACoffman deleted the reload_packages branch December 10, 2024 19:00
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