-
Notifications
You must be signed in to change notification settings - Fork 23
Test failed due to drop local deps #147
Comments
Found an article about golang monorepo: earthly monorepo. BTW this might also affect the helm chart for release: https://github.com/tensorchord/openmodelz-charts cc @gaocegege |
people may need to reproduce the release build, so that people, at least I used to build the release locally, sometimes with modifying the released code.
tag should mean a release? I found the source code in tags is also with local dependencies Line 5 in 408994f
first of all, for harmed local development, I propose an ENV like another point, may I ask why separate those packages into standalone ones if there are so closely related? a local dependency breaks it from the go community, people are hard to integrate mdz into some other golang packages |
They are different components. OpenModelZ is a typical mono repo. |
As for the release, we will create the same version for all these components. Seems that local dependencies are the most convenient way. WDYT @zwpaper |
|
created a PR to propose an update for previous changes, |
Another thing: I have to |
Hmmm, what is would like to say is that in-tree local dependencies are really a bad choice for Go development, even the article https://earthly.dev/blog/golang-monorepo/#importing-local-go-modules-in-a-monorepo show an example for monorepo in Go, but it looks like earthly is not actually have any in-tree local dependencies except the example. but anyway, you guys are the most frequent developers, should be considered first... |
let me submit a PR to revert the changes |
Is there any downside of the monorepo with local dependencies? |
it is mostly about go community, with the local dependencies,
I am also curious about why not treat openmodelz as a go package, like
it seems to be more of a Go monorepo, people could integrate |
the most famous local dependencies user I know is k8s https://github.com/kubernetes/kubernetes/blob/master/go.mod#L250-L280, but they also created and maintained a standalone repository for each dependency, which is not easy and not necessary IMHO. even k8s has a root |
but like I said, I don't mean harm... a revert PR was created #149, feel free to revert the changes, it totally ok to me. |
We keep them separate because users may reply on the agent directly. agent is a library, instead of a exe binary. Just FYI |
yes, but with those 2 lines, users can not use agent as a library... Lines 7 to 8 in 76da51b
like I said, if openmodelz is release as a single go package with only one or maybe I get something wrong? as I was really new to openmodelz |
Yeah, I think so. |
Actually we do not prefer it. We just start every component as a standalone project, then iterate based on them. I think we could maintain one go.mod. |
it's only some personal opinions from me, without some more deep investigation or real practice within openmodelz. it's more important with the opinions from @kemingy, you guys can discuss the idea offline as it may be more effective than posting on GitHub. |
I think we'd better migrate to one go.mod file. |
The test will fail because the agent is using the old version.
cc @zwpaper
Originally posted by @kemingy in #146 (comment)
#138 (comment)
The text was updated successfully, but these errors were encountered: