-
Notifications
You must be signed in to change notification settings - Fork 215
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
Rename example directory to _examples #79
Comments
The recommendation has two parts:
Wanted to note that (1) can be done independent of (2), and each change has certain impact. For (1), apart from the rename itself we'd need to update official links that point to the old location, and live with the fact that some links will be broken. On the plus side, the For (2), having two or more modules in the same repo is not without its trade-offs. See discussion in golang/go#27056, in particular the experience reports in golang/go#27056 (comment) and golang/go#27056 (comment). There is some extra work to maintain cross references between modules and it might eventually bring some pollution to Git tags since the modules are versioned independently. For "example code" this may be okay. @kataras what's your experience with that? I see that https://github.com/kataras/iris has examples under Note that if the problem statement is "Remove example code from the main sentry-go package", an alternative solution is to move the examples to a separate repository (also with its considerations with regards to maintenance, etc). |
@rhcarvalho I reverted all my changes so we are back to green with a new |
Hello @kamilogorek , @rhcarvalho, Based on my experience, examples should be located at If you want to keep supporting older versions of Go but at the same time be able to offer new capabilities based on go1.13 then create new files with updated code (such as the new github.com/kataras/iris/v12) and tag those files with If you need any help I could start preparing a PR with all the above proposals applied on it. Thanks, |
Thanks for the feedback @kataras! |
Multi-module repository FAQ: https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories
|
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Hey folks, thanks for the previous discussion! @kataras I know this is an old issue, but in case you still know/remember the context around it (would be very helpful for us folks who are looking into these issues now): In #79 (comment) you mentioned that:
Wondering what "module errors on build" do you mean here exactly? Also, given that more than 3 (wow!) years passed since that comment of yours, do you feel like dealing with submodules is easier with recent Go versions? |
Considering it done via #521. |
Quoting @kataras from #78 (comment):
The text was updated successfully, but these errors were encountered: