-
Notifications
You must be signed in to change notification settings - Fork 17
Make go modules-compatible and switch to mono-repo #116
Comments
sounds like the future.
If a developer is NOT using the new VGO vendoring approach are they going
to be up the creek without a paddle though ?
…On Wed, 4 Apr 2018 at 12:37 Paul Jolly ***@***.***> wrote:
I'm planning to make all of my Go code hosted on Github vgo-compatible
<https://research.swtch.com/vgo> and in the process switch to a mono-repo.
Rough plan at the moment is:
- house all myitcv.io/... packages in a mono-repo at
https://github.com/myitcv/x
- have multiple modules <https://research.swtch.com/vgo-module> within
the mono-repo, myitcv.io/react being one of them
- drop the _vendor dir, and instead have a reference "cache"/"proxy"
in a separate repo that will be used by developers of the code (not users)
- categorise issues/PRs in much the same way as the Go project does
<https://github.com/golang/go/wiki/HandlingIssues>, e.g.
myitcv.io/react issues would be prefixed by react, react/cmd/reactGen
etc
Any one have any thoughts/concerns with this?
cc @mpl <https://github.com/mpl>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#116>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwnywdJpuhVVJobby9q7uHN5z7LGgks5tlKJxgaJpZM4TGj35>
.
|
For developers of For users of Edit: slight tweak to wording from original post. |
@myitcv Nice of you to try vgo out and experience the bugs for the rest of us. |
🔨
Correct. Indeed nothing should change, regardless of whether you use regular The one thing that will change is the remote repo for |
As a starting point (which I will update over time) Pros:
Cons:
|
For anyone interested, I'm maintaining notes as I go https://github.com/myitcv/x/wiki/Notes-on-migrating-to-a-Go-mono-repo For now |
Have you started moving some things around? Because 'dep ensure' (in Perkeep) is whining that myitcv.io/gogenerate should be renamed to myitcv.io or something like that now. Or maybe it's unrelated and I hadn't noticed before? |
Hmm @johanbrandhorst also reported an issue via And it seems:
is also now failing. Apologies - I was trying to make these changes in an entirely non-breaking way. But it seems I failed to get sufficient testing on that. Will revert the changes to get things back and working. |
meant @johanbrandhorst - apologies @jbrandhorst |
Ok - I've just fixed things by repointing Also added a safety And added a Travis cron job to build Thanks for the report @mpl and @johanbrandhorst. |
Thanks, looks good now. (https://camlistore-review.googlesource.com/c/camlistore/+/15126) |
Quick status update here. I'm still attempting to make this switch. Understandably given that Most critically from @mpl's perspective (indeed anyone who uses So the initial migration will be "everything non-GopherJS related". Followed, at some time later, by "everything GopherJS related." This split state of affairs should be fine so long as people are using Go 1.9.7 or Go 1.10.3. |
Ok, this migration has just happened. Everything should continue to work as before, regardless of your Go version. The only issue you might hit is that the repo "position" within the Making the mono-repo go module aware will happen on a separate branch for now. Would appreciate if people could ping here in case of any breakages. Will leave the issue open until I'm satisfied nothing is broken. |
This does cause For example, the following:
will result in
A user that encounters this error can fix it in one of the following ways:
... and as far as I can tell, that's the only solution. Even explicitly specifying an old source causes it to complain (e.g. the following does not make dep happy).
|
@myitcv To phrase my above comment as a specific question: Should we be rolling forwards our Since it has already been a week with no one else popping up on this thread, it seems to me like just rolling forwards with it makes sense, but if you can give an ack that that's the plan, that would be appreciated! xref perkeep 17526 |
to bf2c84553c7827a1cb6cecf19424fdb93b887d5b. This is required per the change mentioned in myitcv/react#116 (comment). Without this change, 'dep ensure' can't be run, unless the upstream myitcv.io html is reverted/updated or dep fixes a few issues allowing project-root calculations to be overridden. Change-Id: I63ab98b8701dcea753d4e67828f47227801638be
@euank apologies for the radio silence.
Yes, please do roll forward. Apologies for the breakage here, but in the long run it will make things much easier for me, selfishly, to manage a mono repo.
Exactly. I'll leave this issue open for now just in case of any other issues. cc @mpl |
I haven't heard anything on this so I'm going to close this now. Not least because I've also just merged module support into my mono repo: When running Go 1.11 (a build from tip to be specific), the dependency includes experimental Go 1.11 version of GopherJS that is available from https://github.com/myitcv/gopherjs/tree/go1.11 that is itself module-aware. I'll also be archiving these now-redundant repos over the weekend, moving wikis etc to the mono repo. |
@myitcv we've started moving Perkeep to modules as well (https://perkeep-review.googlesource.com/c/perkeep/+/17946). If we have any issues with myitcv/react, we'll probably see them soon. |
I'm planning to make all of my Go code hosted on Github
vgo
-compatible and in the process switch to a mono-repo.Rough plan at the moment is:
myitcv.io/...
packages in a mono-repo at https://github.com/myitcv/xmyitcv.io/react
being one of them_vendor
dir, and instead have a reference "cache"/"proxy" in a separate repo that will be used by developers of the code (not users)myitcv.io/react
issues would be prefixed byreact
,react/cmd/reactGen
etcAny one have any thoughts/concerns with this?
cc @mpl
The text was updated successfully, but these errors were encountered: