This changes the bazel module dependencies so that the C++ jsonnet
repo dependency (which is actually used as the source for the
standard library and nothing else in the Bazel build) comes from
a specific commit of the jsonnet repo, rather than depending on
the 'published' jsonnet 0.20.0.
The two repos are tightly coupled anyway so I think this more
accurately reflects the situation. Particularly since the C++ repo
is also linked (at a specific commit) as a git submodule, which
is used for non-Bazel build and testing.
This includes the stdlib additions in
https://github.com/google/jsonnet/pull/1187
Also updates golden files for go-jsonnet tests; the changes
to the goldens are mostly changes to error locations from
the standard library.
* chore: update rules_go and gazelle version to fix bazel build
* chore: fix source file list in ast directory (ref: #746)
* chore: fix dependency list in formatter directory
Unlike naive `go build`, bazel builds generate `astgen/stdast.go` on
the fly from cpp_jsonnet's stdlib. Cool.
Previously however, the cpp_jsonnet versions in git submodule (used by
naive `go build`) and bazel `http_archive` declarations were not in
sync. Not so cool.
This meant `bazel test //:go_default_test` failed on
`TestEval/testdata/stdlib_smoke_test`, since the stale bazel
cpp_jsonnet version lacked `std.get`.
This PR updates cpp-jsonnet to match git submodule version.