Skip to content

Commit

Permalink
vet: fix invocation
Browse files Browse the repository at this point in the history
Running `make vet` yields:

```console
$ make vet
hack/go-vet.sh ./...
cmd/aws-actuator/main.go:45:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine" in any of:
	/go/src/github.com/openshift/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine (vendor tree)
	/usr/local/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine (from $GOROOT)
	/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine (from $GOPATH)
cmd/aws-actuator/utils.go:22:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1beta1" in any of:
	/go/src/github.com/openshift/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1beta1 (vendor tree)
	/usr/local/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1beta1 (from $GOROOT)
	/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1beta1 (from $GOPATH)
cmd/aws-actuator/main.go:46:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/pkg/client" in any of:
	/go/src/github.com/openshift/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/pkg/client (vendor tree)
	/usr/local/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/client (from $GOROOT)
	/go/src/sigs.k8s.io/cluster-api-provider-aws/pkg/client (from $GOPATH)
cmd/aws-actuator/main.go:47:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/test/utils" in any of:
	/go/src/github.com/openshift/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/test/utils (vendor tree)
	/usr/local/go/src/sigs.k8s.io/cluster-api-provider-aws/test/utils (from $GOROOT)
	/go/src/sigs.k8s.io/cluster-api-provider-aws/test/utils (from $GOPATH)
make: *** [Makefile:129: vet] Error 1
```
  • Loading branch information
frobware committed Apr 16, 2019
1 parent d19c6e5 commit db6a7a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/go-vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if [ "$IS_CONTAINER" != "" ]; then
else
docker run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/${REPO_NAME}:z" \
--workdir "/go/src/github.com/openshift/${REPO_NAME}" \
--volume "${PWD}:/go/src/sigs.k8s.io/${REPO_NAME}:z" \
--workdir "/go/src/sigs.k8s.io/${REPO_NAME}" \
openshift/origin-release:golang-1.10 \
./hack/go-vet.sh "${@}"
fi;

0 comments on commit db6a7a5

Please sign in to comment.