$ go version
go version go1.11.1 darwin/amd64

We have two project : lib-a and project-a

the project-a import lib-a ; if we need Implement a new feature ; we 
checkout two new branches : lib-a-love-feature and project-a-love-feature

and project-a-love-feature import the codes in lib-a-love-feature

so go.mod in project-a-love-feature must is

module git.hezi.com/qiantao/project-a
require (
    git.hezi.com/qiantao/lib-a lib-a-love-feature
    github.com/go-log/log v0.1.0
    github.com/micro/go-micro v0.24.0
    rsc.io/quote v1.5.2)

after go run main.go

go.mod in project-a-love-feature updated like this

module git.hezi.com/qiantao/project-a
require (
    git.hezi.com/qiantao/lib-a v0.0.0-20190321071845-f40956c1bfe6
    github.com/go-log/log v0.1.0
    github.com/micro/go-micro v0.24.0
    rsc.io/quote v1.5.2)

v0.0.0-20190321071845-f40956c1bfe6 is a latest version for branch 
lib-a-love-feature

next !! we push new codes to branch lib-a-love-feature

but in branch project-a-love-feature, because the go.mod is modified, we do 
not get the new codes from branch lib-a-love-feature!

have any way to keep go.mod

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to