-
Notifications
You must be signed in to change notification settings - Fork 207
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
Adding please to a large repo - how to migrate to please and best practices for upkeep #3117
Comments
Yup! You should mostly be able to run To get this to work nicely I recommend adding the following config options:
Yes. Puku can do this for you though.
Please tests provide a lot of control that This doesn't use sandboxes but still uses please to manage all the test deps. You can see what's going on there with |
Hi, I read the Puku documentation and also looked at the implementation itself, but I'm still having trouble getting this working. I think the problem I am running into is that we don't have a top-level go.mod, and the examples seem to assume there is one. At the top level of my repo I currently have a BUILD file:
and the .plzconfig has:
running sync gives me:
I don't really understand the syntax for ModFile. What should I do if I have two projects in the mono repo, with different dependencies? For example, |
You can remove that config entirely and it will try and resolve dependencies itself. The I've made a small update to the docs to make it clearer that that step is optional. Let me know if that makes more sense. |
Hi,
Please is awesome, thanks for sharing it!
If I'm coding in a repo with a single large go package containing hundreds of sub packages and 100 KLOC or more, any specific advice how to introduce please there?
For example:
go.mod
to track hundreds of external third party go modules added viago get
. Are there tools to migrate these to the pleasego_repo
format fromgo.mod
?go.mod
and don't usego_repo
what would I lose from please' functionality/perf? I can't walk away fromgo.mod
since I rely on other go tooling/functionality (that usesgo.mod
) that please doesn't support.go.mod
directly, how to keep please'go_repo
up to date with that?BUILD
file in each subpackage dir?go_test
entries? Are these necessary for please and what would I miss out if I don't generate them?Part of my concern is that if developers add new tests, subpackages, etc what might break with please if those developers don't also add
go_repo, go_test
and am I adding overhead if I require developers to add this config?Thanks!
The text was updated successfully, but these errors were encountered: