Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): upgrade tools and mod packages #14

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

mchill
Copy link
Contributor

@mchill mchill commented Apr 19, 2022

I encountered issue #9 in a project that uses Go 1.18. The project uses Renovate's gomodUpdateImportPaths option, which output this error:

Command failed: mod upgrade --mod-name=github.com/go-playground/validator -t=10
2022/04/18 19:10:55 internal error: package "fmt" without types was imported from "gitlab.com/..."

I tested upgrading the tools package to the latest version locally, based on the solution the last time this issue was brought up, and the above command worked for my project.

Addresses an error with newer versions of Go.

fix marwan-at-work#9
Copy link
Owner

@marwan-at-work marwan-at-work left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, just one comment

@@ -8,7 +8,7 @@ require (
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 // indirect
github.com/pkg/errors v0.9.1
github.com/urfave/cli/v2 v2.3.0
golang.org/x/mod v0.2.0
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
Copy link
Owner

Choose a reason for hiding this comment

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

any reason not to use the latest stable which is v0.5.1 https://pkg.go.dev/golang.org/x/mod ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was bumped automatically as a dependency of tools. https://github.com/golang/tools/blob/v0.1.10/go.mod#L7

tools 0.1.9 uses mod 0.5.1. I tested that with my project and it still works. I can downgrade it if you want to use the stable version.

Copy link
Owner

Choose a reason for hiding this comment

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

I see. Will merge then, thanks!

@marwan-at-work marwan-at-work merged commit 23b4748 into marwan-at-work:master Apr 19, 2022
uvegla added a commit to giantswarm/app-operator that referenced this pull request Jun 8, 2022
uvegla added a commit to giantswarm/app-operator that referenced this pull request Jun 8, 2022
uvegla added a commit to giantswarm/devctl that referenced this pull request Jun 8, 2022
* Bump github.com/marwan-at-work/mod/cmd/mod to v0.4.2

See: https://github.com/giantswarm/app-operator/runs/6792943187?check_suite_focus=true
See: marwan-at-work/mod#14

* Update CHANGELOG.md

* Bump dependencies to solve security issues

* Bump some dependencies to solve issues and ignore some reports for now

* Format go.mod
ubergesundheit pushed a commit to ubergesundheit/devctl-templates that referenced this pull request Apr 2, 2024
* Bump github.com/marwan-at-work/mod/cmd/mod to v0.4.2

See: https://github.com/giantswarm/app-operator/runs/6792943187?check_suite_focus=true
See: marwan-at-work/mod#14

* Update CHANGELOG.md

* Bump dependencies to solve security issues

* Bump some dependencies to solve issues and ignore some reports for now

* Format go.mod
ubergesundheit pushed a commit to ubergesundheit/devctl-templates that referenced this pull request Apr 2, 2024
* Bump github.com/marwan-at-work/mod/cmd/mod to v0.4.2

See: https://github.com/giantswarm/app-operator/runs/6792943187?check_suite_focus=true
See: marwan-at-work/mod#14

* Update CHANGELOG.md

* Bump dependencies to solve security issues

* Bump some dependencies to solve issues and ignore some reports for now

* Format go.mod
ubergesundheit pushed a commit to ubergesundheit/devctl-templates that referenced this pull request Apr 2, 2024
* Bump github.com/marwan-at-work/mod/cmd/mod to v0.4.2

See: https://github.com/giantswarm/app-operator/runs/6792943187?check_suite_focus=true
See: marwan-at-work/mod#14

* Update CHANGELOG.md

* Bump dependencies to solve security issues

* Bump some dependencies to solve issues and ignore some reports for now

* Format go.mod
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