Changing Runtimes #1419
markdiener10
started this conversation in
General
Replies: 2 comments 3 replies
-
Maybe something like: go rebuild honnef.co/go/tools/cmd/staticcheck@latest --compiler=/Users/godev/newcompiler/bin go install honnef.co/go/tools/cmd/staticcheck@latest Or if necessary, git clone, rebuild staticcheck locally. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you are changing the syntax of Go, then it is not enough to do so in the compiler, you also need to update |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is there a fairly quick way to bring linter "staticcheck" into synchronization with the installed golang compiler on a local machine.
I am making runtime and language syntax changes and compiling and linking new versions of the golang compiler but the new compiler works on my Mac M1 laptop under VSCode, but the linter is triggering the following errors:
sample.go:3:16: illegal character U+0023 '#' (compile)
sample.go:8:2: expected ';', found 'EOF' (compile)
Of course, the legacy version of the linter is not aware of my language syntax changes (which are working in the debugger) but triggering warnings by the linter in VSCode.
How can I trigger staticcheck to rebuild itself using the modified golang environment with new golang language syntax so that it follows with the custom golang compiler?
Any comments appreciated.
Beta Was this translation helpful? Give feedback.
All reactions