Skip to content
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

[BUG] v4 import issue #2321

Closed
boskiv opened this issue Oct 24, 2021 · 1 comment
Closed

[BUG] v4 import issue #2321

boskiv opened this issue Oct 24, 2021 · 1 comment

Comments

@boskiv
Copy link

boskiv commented Oct 24, 2021

Describe the bug
Taken an example from examples/heartbeat

  1. What are you trying to do?
package main

import (
	"time"

	"go-micro.dev/v4"
	"go-micro.dev/v4/util/log"
)

func main() {
	service := micro.NewService(
		micro.Name("com.example.srv.foo"),
		micro.RegisterTTL(time.Second*30),
		micro.RegisterInterval(time.Second*15),
	)
	service.Init()

	if err := service.Run(); err != nil {
		log.Fatal(err)
	}
}

How to reproduce the bug:

➜  m-test go mod tidy
go: finding module for package go-micro.dev/v4/util/log
go: finding module for package go-micro.dev/v4
go: found go-micro.dev/v4 in go-micro.dev/v4 v4.2.1
go: found go-micro.dev/v4/util/log in go-micro.dev/v4/util/log v1.18.0
go: m-test/accounts imports
        go-micro.dev/v4/util/log: go-micro.dev/v4/util/log@v1.18.0: parsing go.mod:
        module declares its path as: github.com/micro/go-micro
                but was required as: go-micro.dev/v4/util/log

@xpunch xpunch mentioned this issue Oct 25, 2021
@xpunch
Copy link
Contributor

xpunch commented Oct 25, 2021

The vanity URL issue has been fixed in #2296, now it works.

go get go-micro.dev/v4

@asim asim closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants