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

can't build the project #1148

Closed
wrick198 opened this issue Sep 3, 2019 · 2 comments
Closed

can't build the project #1148

wrick198 opened this issue Sep 3, 2019 · 2 comments

Comments

@wrick198
Copy link

wrick198 commented Sep 3, 2019

error information:
cluster.go:16:2: cannot find package "github.com/go-redis/redis/v7/internal" in any of:

In this project, there is no v7, why?

@wrick198
Copy link
Author

wrick198 commented Sep 3, 2019

in cluster.go:
import (
"context"
"crypto/tls"
"fmt"
"math"
"math/rand"
"net"
"runtime"
"sort"
"sync"
"sync/atomic"
"time"

"github.com/go-redis/redis/v7/internal"
"github.com/go-redis/redis/v7/internal/hashtag"
"github.com/go-redis/redis/v7/internal/pool"
"github.com/go-redis/redis/v7/internal/proto"

)
However, there is no project "github.com/go-redis/redis/v7/internal" in any of place.
why?

@vmihailenco
Copy link
Collaborator

vmihailenco commented Sep 3, 2019

You need to use recent Go version and activate Go module support - https://github.com/golang/go/wiki/Modules#how-to-install-and-activate-module-support

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

Successfully merging a pull request may close this issue.

2 participants