[gitignore] Only ignore go.mod/go.sum in checkout root

go.mod and go.sum files in unexpected places can cause issues with the
Go toolchain. That's especially bad now that we use the Go toolchain
directly for just-in-time building of `fx set`, so a mislocated go.mod
or go.sum file is enough to break `fx set`.

Such breakages appear especially mysterious because all go.mod and
go.sum files outside of an allow-list are gitignored. However, I believe
it's only necessary to gitignore go.mod or go.sum files in the root of
the checkout, as those are likely to be symlinks created by `fx
setup-go` to get Go editor integration to work. The other go.mod and
go.sum files created by `fx setup-go` are in directories like `out` and
`prebuilt` whose contents are entirely ignored by Git, so any
non-gitignored go.mod or go.sum files probably have no good reason to
exist anyway. Now at least they will be much more visible to the user so
it will be more obvious why `fx set` fails to build.

Bug: 80639
Change-Id: I9e995e54a5d0ff402bbe364cd9dde1bd97ead592
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/558701
Reviewed-by: Tamir Duberstein <tamird@google.com>
Reviewed-by: Anirudh Mathukumilli <rudymathu@google.com>
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/.gitignore b/.gitignore
index 87adb9e..ef3cbdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,10 +46,6 @@
 !/third_party/rust_crates/**/Cargo.lock
 Cargo.toml
 !/third_party/rust_crates/**/Cargo.toml
-go.mod
-!/third_party/golibs/**/go.mod
-go.sum
-!/third_party/golibs/**/go.sum
 CMakeLists.txt
 compile_commands.json
 cmake-build-debug/
@@ -106,6 +102,10 @@
 # rust-analyzer
 /rust-project.json
 
+# Symlinks created by `fx setup-go`.
+/go.mod
+/go.sum
+
 # jiri generate-gitmodules can be used to generate a .gitmodules file that
 # reflects the repos that jiri checked out. This is useful for tooling (like
 # vscode) that is aware of submodules. This generated .gitmodules file