Add development guideline for updating Go version of a project
There is no guideline when updating Go version in a project.
A review example
@steveazz and @tnir started a discussion:
issue: We also need to update out go.mod. We can do this by running
go mod edit -go=1.15
.Per go directive, I do not think it is mandatory as updated in the MR description as far as I know. Could we use the Go development guideline around it if we have?
@tnir It's not, however, I think we should still update it because we indicate that we are compiling/supporting Go 1.15. go 1.13 and 1.14 don't remove any features so it won't break anything. I guess this follows the first sentence
A go directive sets the expected language version for the module
. We are using Go 1.15 inside of our CI so we make it clear that we are expecting Go 1.15 to be used. Does that make sense?Could we use the Go development guideline around it if we have?
Good point! However, looking at https://docs.gitlab.com/ee/development/go_guide/index.html#modules it doesn't seem like we specify anything. What would you like it to specify exactly?