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

Build error: "undeclared name: any" #74

Open
jmaister opened this issue Aug 5, 2022 · 1 comment
Open

Build error: "undeclared name: any" #74

jmaister opened this issue Aug 5, 2022 · 1 comment

Comments

@jmaister
Copy link

jmaister commented Aug 5, 2022

I am having a build error here: https://github.com/rog-golang-buddies/go-automatic-apps/runs/7680810060?check_suite_focus=true

The log is here:

  Error: level=error msg="Running error: buildir: analysis skipped: errors in package: [/home/runner/work/go-automatic-apps/go-automatic-apps/server/httpd/common.go:10:56: undeclared name: any]"

I found that the solution is to update Go to 1.18 or later: https://stackoverflow.com/questions/71487498/why-do-i-get-undeclared-name-any-requires-version-go1-18-or-later-when-usin

@jmaister
Copy link
Author

jmaister commented Aug 5, 2022

I've seen that all the .github/workflow/*.yml files are pointing to Go 1.18. However, the files on my project reference Go 1.17.

Shouldn't my project get updated when the template is updated?

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

No branches or pull requests

1 participant