forked from kubernetes-sigs/cluster-api-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from SamuelStuchly/OCPCLOUD-1066-makefiles
[OCPCLOUD-1066] Makefile fix
- Loading branch information
Showing
11 changed files
with
61 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
#!/bin/sh | ||
|
||
REPO_NAME=$(basename "${PWD}") | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
for TARGET in "${@}"; do | ||
find "${TARGET}" -name '*.go' ! -path '*/vendor/*' ! -path '*/.build/*' -exec gofmt -s -w {} \+ | ||
done | ||
git diff --exit-code | ||
else | ||
docker run -it --rm \ | ||
--env GO111MODULE="$GO111MODULE" \ | ||
--env GOFLAGS="$GOFLAGS" \ | ||
--env GOPROXY="$GOPROXY" \ | ||
--env IS_CONTAINER=TRUE \ | ||
--volume "${PWD}:/go/src/sigs.k8s.io/${REPO_NAME}:z" \ | ||
--workdir "/go/src/sigs.k8s.io/${REPO_NAME}" \ | ||
openshift/origin-release:golang-1.15 \ | ||
./hack/go-fmt.sh "${@}" | ||
fi | ||
for TARGET in "${@}"; do | ||
find "${TARGET}" -name '*.go' ! -path '*/vendor/*' ! -path '*/.build/*' -exec gofmt -s -w {} \+ | ||
done | ||
git diff --exit-code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#!/bin/sh | ||
# Example: ./hack/go-lint.sh installer/... pkg/... tests/smoke | ||
|
||
REPO_NAME=$(basename "${PWD}") | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
golint -set_exit_status "${@}" | ||
else | ||
docker run --rm \ | ||
--env GO111MODULE="$GO111MODULE" \ | ||
--env GOFLAGS="$GOFLAGS" \ | ||
--env GOPROXY="$GOPROXY" \ | ||
--env IS_CONTAINER=TRUE \ | ||
--volume "${PWD}:/go/src/sigs.k8s.io/${REPO_NAME}:z" \ | ||
--workdir "/go/src/sigs.k8s.io/${REPO_NAME}" \ | ||
openshift/origin-release:golang-1.15 \ | ||
./hack/go-lint.sh "${@}" | ||
fi | ||
|
||
golint -set_exit_status "${@}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/bin/sh | ||
REPO_NAME=$(basename "${PWD}") | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
go vet "${@}" | ||
else | ||
docker run --rm \ | ||
--env GO111MODULE="$GO111MODULE" \ | ||
--env GOFLAGS="$GOFLAGS" \ | ||
--env GOPROXY="$GOPROXY" \ | ||
--env IS_CONTAINER=TRUE \ | ||
--volume "${PWD}:/go/src/sigs.k8s.io/${REPO_NAME}:z" \ | ||
--workdir "/go/src/sigs.k8s.io/${REPO_NAME}" \ | ||
openshift/origin-release:golang-1.15 \ | ||
./hack/go-vet.sh "${@}" | ||
fi; | ||
|
||
go vet "${@}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
#!/bin/sh | ||
|
||
REPO_NAME=$(basename "${PWD}") | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
for TARGET in "${@}"; do | ||
find "${TARGET}" -name '*.go' ! -path '*/vendor/*' ! -path '*/.build/*' -exec goimports -w {} \+ | ||
done | ||
else | ||
docker run -it --rm \ | ||
--env IS_CONTAINER=TRUE \ | ||
--volume "${PWD}:/go/src/sigs.k8s.io/${REPO_NAME}:z" \ | ||
--workdir "/go/src/sigs.k8s.io/${REPO_NAME}" \ | ||
openshift/origin-release:golang-1.15 \ | ||
./hack/goimports.sh "${@}" | ||
fi | ||
for TARGET in "${@}"; do | ||
find "${TARGET}" -name '*.go' ! -path '*/vendor/*' ! -path '*/.build/*' -exec goimports -w {} \+ | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
cd /tmp | ||
go get -u github.com/openshift/imagebuilder/cmd/imagebuilder | ||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
sudo chown -R $USER bin \ | ||
chown $USER .git/index | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters