I think the problem comes from the fact that the go.mod
of your cloned version of original-project
still says module github.com/y/original-project
. You should use the go.mod
replace
directive. It is meant for cases like yours exactly.
replace github.com/y/original-project => /path/to/x/my-version
Related Contents:
- How to assign string to bytes array
- How to delete an element from a Slice in Golang
- From io.Reader to string in Go
- When to use os.Exit() and panic()?
- What’s the best way to bundle static resources in a Go program?
- Multiple goroutines listening on one channel
- Getting “bytes.Buffer does not implement io.Writer” error message
- How do you get the output of a system command in Go?
- Meaning of …interface{} (dot dot dot interface)
- missing go.sum entry for module providing package
- How to reduce compiled file size?
- Go-compiled binary won’t run in an alpine docker container on Ubuntu host
- How safe are Golang maps for concurrent Read/Write operations?
- How do I get the local IP address in Go?
- How to remove all contents of a directory using Golang?
- GOBIN not set: cannot run go install
- Terminating a Process Started with os/exec in Golang
- Go error: non-constant array bound
- Do Go switch/cases fallthrough or not?
- Where does go get install packages?
- How to check if a slice has a given index in Go?
- How to compare Go errors
- How to remove the last element from a slice?
- Anonymous interface implementation in Golang
- Use of defer in Go
- How to upgrade the go version in a go mod
- formatFloat : convert float number to string [duplicate]
- `docker-compose up` times out with UnixHTTPConnectionPool
- Is it possible to get the current root of package structure as a string in golang test?
- How to escape back ticks
- Can we have function pointers in Go?
- Defining golang struct function using pointer or not
- go vet range variable captured by func literal when using go routine inside of for each loop
- Should a Go package ever use log.Fatal and when?
- mixture of field:value and value initializers
- How to list installed go packages
- multiple conditions in if statement Go templates
- How to find out the number of CPUs in Go lang?
- How do I convert [Size]byte to string in Go?
- “Exported type should have comment or be unexported” golang VS Code
- Go – append to slice in struct
- Slice as a key in map
- Error in importing custom packages in Go Lang
- nil slices vs non-nil slices vs empty slices in Go language
- Access main package from other package
- In Go, how to import function directly, without need to prefix with the package name when I call it?
- How can I convert an int64 into a byte array in go?
- Go: invalid operation – type *map[key]value does not support indexing
- build constraints exclude all Go files in
- How to add pause to a Go program?