fix: Go build remove unused imports#47
Merged
Merged
Conversation
added 3 commits
November 13, 2023 14:55
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
Does the PR have any schema changes?Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
added 2 commits
November 13, 2023 16:30
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
displague
reviewed
Nov 14, 2023
| @@ -8,6 +8,7 @@ import ( | |||
| "reflect" | |||
|
|
|||
Member
There was a problem hiding this comment.
I would imagine goimports would have removed this whitespace
Contributor
Author
There was a problem hiding this comment.
yes it was goimports
Member
|
Have you tried https://go.dev/ref/mod#go-mod-tidy? |
Member
This seems dangerous compared to We may be picking up development/build runtime dependencies, and if those are creating a problem we could put them in a separate go.mod. |
Contributor
Author
|
I didn't see |
Contributor
Author
displague
approved these changes
Nov 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When generating the go sdk it includes some dependencies that are not used, this produces errors during the installation of the package. I added goimports in the build_go target to remove all unused imports
There are also some updates in go.mod/go.sum files after running
go work sync, and goreleaser file updated to run clean cache