Skip to content

Fix/dep bump#140

Open
gshikhar2021 wants to merge 1 commit intoredhat-data-and-ai:mainfrom
gshikhar2021:fix/Dep-Bump
Open

Fix/dep bump#140
gshikhar2021 wants to merge 1 commit intoredhat-data-and-ai:mainfrom
gshikhar2021:fix/Dep-Bump

Conversation

@gshikhar2021
Copy link
Copy Markdown
Contributor

Upgrade go version as dep bump is failing due to go version

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Go version and toolchain in go.mod to versions 1.25.0 and 1.26.0, which are currently unreleased and will cause build failures. It also introduces a large number of vendored dependencies. The review feedback identifies the invalid Go versions and suggests reverting to a stable release like 1.24. Furthermore, it questions the inclusion of the vendor/ directory, recommending a reliance on Go modules to minimize repository size and maintenance overhead.

go.mod Outdated
Comment on lines +3 to +5
go 1.25.0

toolchain go1.24.5
toolchain go1.26.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Go version 1.25.0 and toolchain go1.26.0 are not valid released versions of Go (Go 1.24 is the current major version). This will cause build failures in standard environments. Please use a valid stable version such as 1.24.

@@ -0,0 +1,28 @@
//go:build kubernetes_protomessage_one_more_release
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The vendor/ directory is being added to the repository. Unless there is a specific requirement for vendoring (e.g., restricted network access during builds), it is generally recommended to rely on Go modules and exclude the vendor/ directory from version control to keep the repository size manageable and avoid maintenance overhead.

go.mod Outdated
@@ -2,7 +2,7 @@ module github.com/redhat-data-and-ai/unstructured-data-controller

go 1.24.4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this


go 1.24.4

toolchain go1.24.5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we need to do go mod tidy and go mod vendor once

- Dep bump are failing because of go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants