Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ integration:
go test -v sigs.k8s.io/cluster-api-provider-aws/test/integration

fmt:
hack/verify-gofmt.sh
hack/go-fmt.sh .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is go-fmt different to go-vet w.r.t. passing ./.... One does, the other doesn't. Curious as to why.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, that's how installer runs it.
All those scripts are created by guys from installer team, we just copy-pasted them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


vet:
go vet ./...
hack/go-vet.sh ./...
3 changes: 1 addition & 2 deletions hack/go-fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
--workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
--entrypoint sh \
quay.io/coreos/golang-testing \
openshift/origin-release:golang-1.10 \
./hack/go-fmt.sh "${@}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ${@} and not just "$@"?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck says that both are valid.

fi
3 changes: 1 addition & 2 deletions hack/go-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
--workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
--entrypoint sh \
quay.io/coreos/golang-testing \
openshift/origin-release:golang-1.10 \
./hack/go-lint.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/sigs.k8s.io/cluster-api-provider-aws:z" \
--workdir /go/src/sigs.k8s.io/cluster-api-provider-aws \
quay.io/coreos/golang-testing \
openshift/origin-release:golang-1.10 \
./hack/go-vet.sh "${@}"
fi;