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
2 changes: 1 addition & 1 deletion docs/dev/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We follow a hard flattening approach; i.e. direct and inherited dependencies are

Dependencies are managed with [Go Modules](https://github.com/golang/go/wiki/Modules) but committed directly to the repository.

We require at least Go 1.17.
We require at least Go 1.18.

- Add or update a dependency with `go get <dependency>@<version>`.
- If you want to use a fork of a project or ensure that a dependency is not updated even when another dependency requires a newer version of it, manually add a [replace directive in the go.mod file](https://github.com/golang/go/wiki/Modules#when-should-i-use-the-replace-directive).
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openshift/installer

go 1.17
go 1.18

require (
cloud.google.com/go v0.81.0
Expand Down
57 changes: 0 additions & 57 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ copy_terraform_to_mirror() {
cp "${PWD}/terraform/bin/${TARGET_OS_ARCH}/terraform" "${PWD}/pkg/terraform/providers/mirror/terraform/"
}

minimum_go_version=1.17
minimum_go_version=1.18
current_go_version=$(go version | cut -d " " -f 3)

if [ "$(version "${current_go_version#go}")" -lt "$(version "$minimum_go_version")" ]; then
Expand Down
2 changes: 1 addition & 1 deletion hack/go-fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-fmt.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-genmock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-genmock.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-lint.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-sec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-sec.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-test.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/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/go-vet.sh "${@}"
fi;
2 changes: 1 addition & 1 deletion hack/verify-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/verify-codegen.sh "${@}"
fi
6 changes: 3 additions & 3 deletions hack/verify-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ if [ "$IS_CONTAINER" != "" ]; then
verify_module "${PWD}"

# Verify the sub-modules for the terraform providers.
# The -compat=1.17 is needed for the openstack provider. The provider uses golang.org/x/mod, which go 1.17 selects
# The -compat=1.18 is needed for the openstack provider. The provider uses golang.org/x/mod, which go 1.18 selects
# as v0.3.0 but go 1.16 selects as v0.4.2.
find terraform/providers -maxdepth 1 -mindepth 1 -print0 | while read -r -d '' dir
do
verify_module "$dir" "1.17"
verify_module "$dir" "1.18"
done

# Verify the terraform sub-module.
Expand All @@ -36,6 +36,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.17 \
docker.io/golang:1.18 \
./hack/verify-vendor.sh "${@}"
fi