Closed nbering closed 6 years ago
Seems this is duplicate of #16686. Hadn't read through all the recent issues to catch this before posting. I'm going to leave this open for the moment... as my description contains the commits found with bisect. Looking into this "stringer" tool now.
Solved for myself. Solution was to update the stringer utility. Simple one-command fix:
$ go get -u -a golang.org/x/tools/cmd/stringer
Hey folks. My apologies in advance if this is not the correct thread (or if it's a duplicate thread).
So I updated stringer, but make
throws the following error
==> Checking that code complies with gofmt requirements... ./src/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/bad/bad.go:2:43: expected 'package', found 'EOF' ./src/golang.org/x/tools/go/loader/testdata/badpkgdecl.go:1:34: expected 'package', found 'EOF' gofmt needs running on the following files: ./command/internal_plugin_list.go ./src/golang.org/x/tools/go/ssa/testdata/valueforexpr.go You can use the command:
make fmtto reformat code. make: *** [fmtcheck] Error 1
Hi @paulrigor,
That appears to be distinctly different from what was solved here. Your output doesn't appear to have anything to do with the 'stringer' utility.
If I had to guess from the error messages, it would appear to me from your error messages that some package in your build has an invalid go file. Beyond that, I'd be completely guessing.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I've been building Terraform locally for some time, and I've never had an issue building from a tagged version until
v0.10.8
. It doesn't seem to be the build itself, but rather some preconditions in the makefile. I ran git bisect to isolate the commits that the two separate errors I'm getting originated in.I know Terraform fairly well, but I'm not a very experienced
go
developer, so I wasn't able to do much more than identify that the issues started in dadec5210be3e53c3808207ba31f158cb85e984e and 61cd3bf02a69a8bfbfc6aff843dcea4779a63628.The packages mentioned in the build errors below are definitely present in the vendor folder, so I'm a little at a loss as to where to begin. Running
scripts/build.sh
runs without errors.@apparentlymart Both problem commits originate with you. Any insight or suggestions?
Terraform Version
Beginning at dadec5210be3e53c3808207ba31f158cb85e984e
Terraform Configuration Files
N/A
Expected Behavior
Project should build locally.
Actual Behavior
Starting in dadec5210be3e53c3808207ba31f158cb85e984e...
Starting in 61cd3bf02a69a8bfbfc6aff843dcea4779a63628...
Important Factoids