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 gob mode to support custom package loading techniques in place of --exec_only #214

Merged
merged 1 commit into from
Oct 17, 2024

Commits on Oct 17, 2024

  1. Add gob mode to support custom package loading techniques in place of…

    … `--exec_only`
    
    Change uber-go#207 replaced reflect mode with package mode.
    In doing so, we no longer had to create separate reflect programs
    that would encode the resulting package into a gob
    for the rest of mockgen to read from.
    Because of that, we removed the `--exec_only` flag.
    
    However, this flag was actually used to pass in programs that created gob encodings
    in other ways, allowing customization of the package loading and encoding portion of mockgen.
    As an alternative, this adds a new flag to mockgen `--model_gob`,
    which allows mockgen users to pass a path to a gob encoding of a `model.Package`,
    so that custom ways of loading package information can still be supported.
    JacobOaks committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    0f6b40e View commit details
    Browse the repository at this point in the history