File tree Expand file tree Collapse file tree 6 files changed +116
-93
lines changed
site/content/en/docs/contrib/building Expand file tree Collapse file tree 6 files changed +116
-93
lines changed Original file line number Diff line number Diff line change
1
+ name : " go-mod-tidy"
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - master
7
+ env :
8
+ GOPROXY : https://proxy.golang.org
9
+ GO_VERSION : ' 1.24.0'
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ generate-docs :
15
+ if : github.repository == 'kubernetes/minikube'
16
+ runs-on : ubuntu-22.04
17
+ steps :
18
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
19
+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
20
+ with :
21
+ go-version : ${{env.GO_VERSION}}
22
+ - name : Tidy Go Modules
23
+ id : gmodtidy
24
+ run : |
25
+ make gomodtidy
26
+ c=$(git status --porcelain)
27
+ # The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
28
+ echo "changes<<EOF" >> "$GITHUB_OUTPUT"
29
+ echo "$c" >> "$GITHUB_OUTPUT"
30
+ echo "EOF" >> "$GITHUB_OUTPUT"
31
+ - name : Create PR
32
+ if : ${{ steps.gendocs.outputs.changes != '' }}
33
+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
34
+ with :
35
+ token : ${{ secrets.MINIKUBE_BOT_PAT }}
36
+ commit-message : Update auto-generated docs and translations
37
+ committer :
minikube-bot <[email protected] >
38
+ author :
minikube-bot <[email protected] >
39
+ branch : gomodtidy
40
+ push-to-fork : minikube-bot/minikube
41
+ base : master
42
+ delete-branch : true
43
+ title : ' go mod tidy'
44
+ body : |
45
+ Committing changes resulting from `make gomodtidy`.
46
+ This PR is auto-generated by the [gendocs](https://github.com/kubernetes/minikube/blob/master/.github/workflows/go-mod-tidy.yml) CI workflow that runs on every push to master.
47
+
48
+ ```
49
+ ${{ steps.gomodtidy.outputs.changes }}
50
+ ```
Original file line number Diff line number Diff line change @@ -399,6 +399,11 @@ integration-functional-only: out/minikube$(IS_EXE) ## Trigger only functioanl te
399
399
.PHONY : html_report
400
400
html_report : # # Generate HTML report out of the last ran integration test logs.
401
401
@go tool test2json -t < " ./out/testout_$( COMMIT_SHORT) .txt" > " ./out/testout_$( COMMIT_SHORT) .json"
402
+ # install gopogh if not already installed
403
+ @if ! command -v gopogh > /dev/null 2>&1 ; then \
404
+ echo " gopogh not found, installing..." ; \
405
+ GOBIN=$(shell go env GOPATH) /bin go install github.com/medyagh/gopogh/cmd/gopogh@latest; \
406
+ fi
402
407
@gopogh -in " ./out/testout_$( COMMIT_SHORT) .json" -out ./out/testout_$(COMMIT_SHORT ) .html -name " $( shell git rev-parse --abbrev-ref HEAD) " -pr " " -repo github.com/kubernetes/minikube/ -details " ${COMMIT_SHORT} "
403
408
@echo " -------------------------- Open HTML Report in Browser: ---------------------------"
404
409
ifeq ($(GOOS ) ,windows)
@@ -1026,6 +1031,12 @@ compare: out/mkcmp out/minikube
1026
1031
generate-licenses :
1027
1032
./hack/generate_licenses.sh
1028
1033
1034
+ .PHONY : gomodtidy
1035
+ gomodtidy : # # run go mod tidy everywhere needed
1036
+ go mod tidy
1037
+ cd hack && go mod tidy
1038
+
1039
+
1029
1040
.PHONY : help
1030
1041
help :
1031
1042
@printf " \033[1mAvailable targets for minikube ${VERSION} \033[21m\n"
Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ require (
239
239
)
240
240
241
241
replace (
242
- git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999
243
242
github.com/Parallels/docker-machine-parallels/v2 => github.com/minikube-machine/machine-driver-parallels/v2 v2.0.2-0.20240730142131-ada9375ea417
244
243
github.com/docker/machine => github.com/minikube-machine/machine v0.0.0-20240815173309-ffb6b643c381
245
244
github.com/machine-drivers/docker-machine-driver-vmware => github.com/minikube-machine/machine-driver-vmware v0.1.6-0.20230701123042-a391c48b14d5
Original file line number Diff line number Diff line change @@ -4,14 +4,7 @@ go 1.24.0
4
4
5
5
toolchain go1.24.1
6
6
7
- replace (
8
- git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999
9
- github.com/Parallels/docker-machine-parallels/v2 => github.com/minikube-machine/machine-driver-parallels/v2 v2.0.2-0.20240730142131-ada9375ea417
10
- github.com/briandowns/spinner => github.com/alonyb/spinner v1.12.7
11
- github.com/docker/machine => github.com/minikube-machine/machine v0.0.0-20240815173309-ffb6b643c381
12
- github.com/machine-drivers/docker-machine-driver-vmware => github.com/minikube-machine/machine-driver-vmware v0.1.6-0.20230701123042-a391c48b14d5
13
- k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.22.4
14
- )
7
+ replace github.com/docker/machine => github.com/minikube-machine/machine v0.0.0-20240815173309-ffb6b643c381
15
8
16
9
require (
17
10
cloud.google.com/go/storage v1.55.0
You can’t perform that action at this time.
0 commit comments