Commit Graph

6 Commits (master)

Author SHA1 Message Date
Nir Soffer fbf257d1b5
hack: Rename module to k8s.io/minikube/hack (#21141)
Just because it is the expected name.
2025-07-28 17:40:26 -07:00
Nir Soffer 6a779426fe
hack: Replace go workspace with replace (#21094)
Using go workspace breaks iso build, and may affect the builds in
unwanted ways, bringing dependencies from the hack module into the
minikube module.

Remove the go.work file and add a replace directive to the hack module,
so it can access minikube packages from the local directory.

Some programs working directory was the source directory. With this
change all programs and scripts in the hack module are run from the
hack directory. Paths updated to the programs can find files in the
minikube root directory.

Some updaters and benchmarks are broken in master and are still broken
with this change.

These updates fail to pull non-existing images:
- make update-istio-operator-version
- make update-amd-gpu-device-plugin-version

These try to install try to install in /usr/local/bin with sudo and
neede rewrite:
- make cpu-benchmark-idle
- make cpu-benchmark-autopause
- make time-to-k8s-benchmark
2025-07-25 15:33:44 -07:00
Medya Ghazizadeh 6d92b2208f
separate go mod for hack folder (#21060)
* separate go mod for hack folder and use go work

* remove dependecy on k8s.minikube inside hack

* remove gowork files
2025-07-13 14:37:20 -07:00
Tian 3cf1e63e21
build: address all lint issues by v2 (#20804)
* fix QF1011: could omit type *os.File from declaration; it will be inferred from the right-hand side

* fix QF1012: Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))

* fix QF1001: could apply De Morgan's law

* fix QF1003: could use tagged switch

* fix weakCond: suspicious ; nil check may not be enough, check for len (gocritic)

* fix docStub: silencing go lint doc-comment warnings is unadvised

* fix builtinShadow: shadowing of predeclared identifier: error

* fix importShadow: shadow of imported package

* fix nestingReduce: invert if cond, replace body with , move old body after the statement

* useless-break: useless break in case clause (revive)

* Clear the redundant content in golangci.yaml file
2025-05-23 17:31:28 -07:00
Steven Powell 72b6ba3776 add missing = 2023-04-06 15:18:51 -07:00
Steven Powell 9137397338 CI: Automate updating docker version 2023-04-06 15:17:03 -07:00