Skip to content

make build error: missing ziphash #32

@onethirdzero

Description

@onethirdzero

Hi, I'm having trouble building from source. I'm using Go 1.15.6.

$ go mod download
$ make build
k8s.io/api v0.18.6: missing ziphash: open /home/jsiaw/go/pkg/mod/cache/download/k8s.io/api/@v/v0.18.6.ziphash: no such file or directory
k8s.io/apimachinery v0.18.6: missing ziphash: open /home/jsiaw/go/pkg/mod/cache/download/k8s.io/apimachinery/@v/v0.18.6.ziphash: no such file or directory
k8s.io/klog v1.0.0: missing ziphash: open /home/jsiaw/go/pkg/mod/cache/download/k8s.io/klog/@v/v1.0.0.ziphash: no such file or directory
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a: missing ziphash: open /home/jsiaw/go/pkg/mod/cache/download/k8s.io/kube-openapi/@v/v0.0.0-20191107075043-30be4d16710a.ziphash: no such file or directory
make: *** [Makefile:82: deps] Error 1

I've tried clearing the module cache (~/go/pkg/mod/cache) and doing go mod download && make build. No dice. I get the same errors.

The only related discussion I could find on ziphashes was this Stack Overflow question, which seems to suggest that something happened in these dependencies that's causing the ziphash not to be created. Or maybe it's a bug in the Go tooling.

I'm currently working around this by removing the deps dependency in the build target. That allows the build to succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions