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

Preserve Cache between the runs #47

Open
gn-harness opened this issue Jul 1, 2022 · 2 comments
Open

Preserve Cache between the runs #47

gn-harness opened this issue Jul 1, 2022 · 2 comments

Comments

@gn-harness
Copy link

We have large build targets (one for each top level directory) in https://github.com/harness/harness-core.

When I run gazelle - I have to deal (manually fix) with a bunch of cyclic dependencies. Each time I refactor, I run gazelle to regenerate the build files. Even if changes are isolated to a sub-directory, I have to run gazelle on entire workspace. It appears on each run, we map package to build target -- so if we try running gazelle only on a sub-directory, it does not resolve imports from other directories.

Is there a way to create a cache of such mapping and update it with new runs?

@illicitonion
Copy link
Collaborator

Unfortunately not easily - see bazelbuild/bazel-gazelle#1181 for some discussion on this topic. I definitely agree that this would be a useful thing to have!

@gn-harness
Copy link
Author

Thanks Daniel! Have you tried using go_prefix for java -- does that help our usecase as discussed in the other ticket?

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

No branches or pull requests

2 participants