Comments (5)
Are you using latest master?
we use 1.11.4 and 1.11.5 and didn't have problems. Go version on your laptop shouldn't matter much though, since build happens in a container.
from kraken.
Right. this is the most recent master.
chris:kraken chris$ git pull
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 14 (delta 8), reused 9 (delta 7), pack-reused 0
Unpacking objects: 100% (14/14), done.
From https://github.com/uber/kraken
d86f045..a61fa4f master -> origin/master
Updating d86f045..a61fa4f
Fast-forward
.gitignore | 2 ++
.travis.yml | 4 ++++
Makefile | 3 ++-
README.md | 3 +++
codecov.yml | 2 ++
utils/httputil/httputil.go | 39 ++++++++++++++++++++++++++++++---------
utils/httputil/tls_test.go | 2 +-
7 files changed, 44 insertions(+), 11 deletions(-)
create mode 100644 codecov.yml
chris:kraken chris$ make devcluster
docker run --rm -it -v /Users/chris/go:/go -w /go/src/github.com/uber/kraken golang:1.11.4 go build -o ./agent/agent ./agent/
# github.com/uber/kraken/lib/middleware
lib/middleware/middleware.go:45:40: cannot use ctx.RoutePattern (type func() string) as type string in argument to strings.Split
# github.com/uber/kraken/lib/dockerregistry
lib/dockerregistry/blobs.go:55:26: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:86:28: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:90:32: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:100:6: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:129:20: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:157:46: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:178:42: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:196:46: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:219:42: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:244:40: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:244:40: too many errors
make: *** [agent/agent] Error 2
from kraken.
Seems the dependencies are not on your machine.
Can you try:
rm -rf vendor
make vendor
from kraken.
did that and same problem.
chris:kraken chris$ rm -rf vendor/
chris:kraken chris$ make vendor
GO111MODULE=on go mod vendor
chris:kraken chris$ make devcluster
docker run --rm -it -v /Users/chris/go:/go -w /go/src/github.com/uber/kraken golang:1.11.4 go build -o ./agent/agent ./agent/
# github.com/uber/kraken/lib/middleware
lib/middleware/middleware.go:45:40: cannot use ctx.RoutePattern (type func() string) as type string in argument to strings.Split
# github.com/uber/kraken/lib/dockerregistry
lib/dockerregistry/blobs.go:55:26: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:86:28: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:90:32: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:100:6: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/blobs.go:129:20: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:157:46: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:178:42: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:196:46: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:219:42: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:244:40: undefined: "github.com/uber/kraken/vendor/github.com/docker/distribution/context".Context
lib/dockerregistry/storage_driver.go:244:40: too many errors
make: *** [agent/agent] Error 2
I found the code has problem with latest dependencies. for example, the first error shows ctx.RoutePattern is a function name, but used as a string.
lib/middleware/middleware.go:45:40: cannot use ctx.RoutePattern (type func() string) as type string in argument to strings.Split
see https://github.com/go-chi/chi/blob/master/context.go#L94
from kraken.
Discussed with @chrislusf offline. Just need to make sure: 1. using latest master branch 2. repo checked out under $GOPATH
from kraken.
Related Issues (20)
- Harbor and Kraken
- Docker hub requests are failing HOT 2
- TLS passphrase is unnecessarily mandatory
- Continuous fuzzing through OSS-fuzz
- 500 failed to verify data: digests do not match; Image fails to pull. HOT 1
- Interested in integrated with Nydus image servcie?
- Document steps to use corporate proxy
- cross-cluster replication related doc not found
- k8s: Running in an IPv6 dual stack cluster.
- Is project alive? HOT 5
- Unable to download the kraken database
- I found an arbitrary file read vulnerability in the component testfs
- Readme mentions Deprecated Makisu
- Readme: Slack channel not reachable HOT 1
- Vulnerability of dependency "golang.org/x/text" HOT 3
- Custom policy based on response time between peers
- Cannot pull docker image using registry on port 30081 HOT 4
- ARM64 container images
- Readme Arch diagram visibility
- CNCF TAG Runtime Discussion/Presentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kraken.