Open dBitech opened 1 year ago
stringer can be resolved by: go install golang.org/x/tools/cmd/stringer@latest
@dBitech can you run go mod tidy
then go mod vendor
and see if any dependencies are being added? Everything needed to build locally should already be vendored.
@dBitech did you ever get resolution on this?
No,
So if I:
darcy@tegola-01:~/src/github.com/go-spatial/tegola $ go install golang.org/x/tools/cmd/stringer@latest
darcy@tegola-01:~/src/github.com/go-spatial/tegola $ go mod tidy
darcy@tegola-01:~/src/github.com/go-spatial/tegola $ go mod vendor
then try and do a go generate ...
I still get errors such as the following:
darcy@tegola-01:~/src/github.com/go-spatial/tegola $ go generate ... 2>&1 | less
go: not generating in packages in dependency modules
2024/06/26 19:32:12 open node_gen.go: permission denied
exit status 1
/usr/local/go121/src/cmd/compile/internal/ir/mini.go:5: running "go": exit status 1
2024/06/26 19:32:12 can't write output: open ../allocators.go: permission denied
exit status 1
/usr/local/go121/src/cmd/compile/internal/ssa/generate.go:9: running "go": exit status 1
stringer: writing output: open token_string.go: permission denied
/usr/local/go121/src/cmd/compile/internal/syntax/tokens.go:9: running "stringer": exit status 1
2024/06/26 19:32:12 open builtin.go: permission denied
exit status 1
/usr/local/go121/src/cmd/compile/internal/typecheck/target.go:5: running "go": exit status 1
stringer: writing output: open algkind_string.go: permission denied
/usr/local/go121/src/cmd/compile/internal/types/alg.go:13: running "stringer": exit status 1
....
though it looks like if i ignore the errors, and then proceed with cd cmd/tegola/ && go build -mod vendor
i do get a valid binary being built. This is less than ideal, and should try and resolve what ever is causing all of the errors in the go generate ...
Attempting to build on a fresh FreeBSD 13.1 system, as a non privileged user.
Following the README.md for installation, I check out the source from github
Change to the tegola directory and execute go generate...