Skip to content

Commit

Permalink
go.mod: Update go version
Browse files Browse the repository at this point in the history
The current version 1.19 is causing `make generate` to fail on format
issue.
Updating to 1.21.
Also updating the deepcopy-gen flags as the older ones are no longer
supported.

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed May 1, 2024
1 parent 0d3b36c commit b04960b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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/k8snetworkplumbingwg/kubemacpool

go 1.19
go 1.21.9

require (
github.com/go-logr/logr v1.2.4
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

// Generate deepcopy for apis
//go:generate deepcopy-gen -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt
//go:generate deepcopy-gen --output-file zz_generated.deepcopy --add_dir_header ./... --go-header-file ../../hack/boilerplate.go.txt

// Package apis contains Kubernetes API groups.
package apis
Expand Down

0 comments on commit b04960b

Please sign in to comment.