hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.91k stars 1.95k forks source link

[BUILD] Developing locally of Nomad is failing #3614

Closed ArangoGutierrez closed 6 years ago

ArangoGutierrez commented 6 years ago

Nomad version

Operating system and Environment details

NAME=Fedora
VERSION="26 (Workstation Edition)"
ID=fedora
VERSION_ID=26
PRETTY_NAME="Fedora 26 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:26"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=26
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=26
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Issue

Developing locally of Nomad is failing

Reproduction steps

On make boostrap

 make bootstrap 
==> Updating build dependencies...
go get -u github.com/alecthomas/gometalinter
gometalinter --install
Installing:
  deadcode
  dupl
  errcheck
  gas
  goconst
  gocyclo
  goimports
  golint
  gosimple
  gotype
  gotypex
  ineffassign
  interfacer
  lll
  maligned
  megacheck
  misspell
  nakedret
  safesql
  staticcheck
  structcheck
  unconvert
  unparam
  unused
  varcheck
  vet
go get -u github.com/kardianos/govendor
go get -u golang.org/x/tools/cmd/cover
go get -u github.com/axw/gocov/gocov
go get -u gopkg.in/matm/v1/gocov-html
go get -u github.com/ugorji/go/codec/codecgen
go get -u github.com/hashicorp/vault
# github.com/hashicorp/vault/helper/certutil
../../hashicorp/vault/helper/certutil/pkcs8.go:58: undefined: asn1.NullRawValue
# github.com/hashicorp/vault/physical
../../hashicorp/vault/physical/testing.go:11: t.Helper undefined (type *testing.T has no field or method Helper)
../../hashicorp/vault/physical/testing.go:200: t.Helper undefined (type *testing.T has no field or method Helper)
../../hashicorp/vault/physical/testing.go:271: t.Helper undefined (type *testing.T has no field or method Helper)
../../hashicorp/vault/physical/testing.go:348: t.Helper undefined (type *testing.T has no field or method Helper)
../../hashicorp/vault/physical/testing.go:403: t.Helper undefined (type *testing.T has no field or method Helper)
# github.com/hashicorp/vault/vendor/github.com/coreos/etcd/clientv3
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/client.go:331: cannot use c.tokenCred (type *authTokenCredential) as type credentials.PerRPCCredentials in argument to grpc.WithPerRPCCredentials:
    *authTokenCredential does not implement credentials.PerRPCCredentials (wrong type for GetRequestMetadata method)
        have GetRequestMetadata("context".Context, ...string) (map[string]string, error)
        want GetRequestMetadata("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, ...string) (map[string]string, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/client.go:387: cannot use client.balancer (type *healthBalancer) as type grpc.Balancer in argument to grpc.WithBalancer:
    *healthBalancer does not implement grpc.Balancer (wrong type for Get method)
        have Get("context".Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)
        want Get("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:116: cannot use *retryKVClient literal (type *retryKVClient) as type etcdserverpb.KVClient in return argument:
    *retryKVClient does not implement etcdserverpb.KVClient (wrong type for Compact method)
        have Compact("context".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)
        want Compact("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:117: cannot use retryBasic (type *retryKVClient) as type etcdserverpb.KVClient in field value:
    *retryKVClient does not implement etcdserverpb.KVClient (wrong type for Compact method)
        have Compact("context".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)
        want Compact("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:183: cannot use retry (type *retryLeaseClient) as type etcdserverpb.LeaseClient in field value:
    *retryLeaseClient does not implement etcdserverpb.LeaseClient (wrong type for LeaseGrant method)
        have LeaseGrant("context".Context, *etcdserverpb.LeaseGrantRequest, ...grpc.CallOption) (*etcdserverpb.LeaseGrantResponse, error)
        want LeaseGrant("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.LeaseGrantRequest, ...grpc.CallOption) (*etcdserverpb.LeaseGrantResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:183: cannot use *retryLeaseClient literal (type *retryLeaseClient) as type etcdserverpb.LeaseClient in return argument:
    *retryLeaseClient does not implement etcdserverpb.LeaseClient (wrong type for LeaseGrant method)
        have LeaseGrant("context".Context, *etcdserverpb.LeaseGrantRequest, ...grpc.CallOption) (*etcdserverpb.LeaseGrantResponse, error)
        want LeaseGrant("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.LeaseGrantRequest, ...grpc.CallOption) (*etcdserverpb.LeaseGrantResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:237: cannot use retryClusterClient literal (type *retryClusterClient) as type etcdserverpb.ClusterClient in return argument:
    *retryClusterClient does not implement etcdserverpb.ClusterClient (wrong type for MemberAdd method)
        have MemberAdd("context".Context, *etcdserverpb.MemberAddRequest, ...grpc.CallOption) (*etcdserverpb.MemberAddResponse, error)
        want MemberAdd("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.MemberAddRequest, ...grpc.CallOption) (*etcdserverpb.MemberAddResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:282: cannot use retryMaintenanceClient literal (type *retryMaintenanceClient) as type etcdserverpb.MaintenanceClient in return argument:
    *retryMaintenanceClient does not implement etcdserverpb.MaintenanceClient (wrong type for Alarm method)
        have Alarm("context".Context, *etcdserverpb.AlarmRequest, ...grpc.CallOption) (*etcdserverpb.AlarmResponse, error)
        want Alarm("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.AlarmRequest, ...grpc.CallOption) (*etcdserverpb.AlarmResponse, error)
../../hashicorp/vault/vendor/github.com/coreos/etcd/clientv3/retry.go:361: cannot use retryAuthClient literal (type *retryAuthClient) as type etcdserverpb.AuthClient in return argument:
    *retryAuthClient does not implement etcdserverpb.AuthClient (wrong type for AuthDisable method)
        have AuthDisable("context".Context, *etcdserverpb.AuthDisableRequest, ...grpc.CallOption) (*etcdserverpb.AuthDisableResponse, error)
        want AuthDisable("github.com/hashicorp/vault/vendor/golang.org/x/net/context".Context, *etcdserverpb.AuthDisableRequest, ...grpc.CallOption) (*etcdserverpb.AuthDisableResponse, error)
make: *** [GNUmakefile:139: deps] Error 2

On make test

make test
==> Linting source code...
==> Removing old development build...
==> Building pkg/linux_amd64/nomad...
# github.com/hashicorp/nomad/nomad/mock
../../hashicorp/nomad/nomad/mock/acl.go:49: t.Helper undefined (type testing.T has no field or method Helper)
../../hashicorp/nomad/nomad/mock/acl.go:62: t.Helper undefined (type testing.T has no field or method Helper)
make[1]: *** [GNUmakefile:62: pkg/linux_amd64/nomad] Error 2
make: *** [GNUmakefile:168: dev] Error 2

On make dev

make dev
==> Linting source code...
==> Removing old development build...
==> Building pkg/linux_amd64/nomad...
# github.com/hashicorp/nomad/nomad/mock
../../hashicorp/nomad/nomad/mock/acl.go:49: t.Helper undefined (type testing.T has no field or method Helper)
../../hashicorp/nomad/nomad/mock/acl.go:62: t.Helper undefined (type testing.T has no field or method Helper)
make[1]: *** [GNUmakefile:62: pkg/linux_amd64/nomad] Error 2
make: *** [GNUmakefile:168: dev] Error 2
angrycub commented 6 years ago

@ArangoGutierrez, you need to upgrade to go 1.9+.

If you wish to work on Nomad itself or any of its built-in systems, you will first need Go installed on your machine (version 1.9+ is required).

ArangoGutierrez commented 6 years ago

Thanks, will try @angrycub

ArangoGutierrez commented 6 years ago

Thanks to @angrycub this is closed!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.