1 diff --git a/private/buf/cmd/buf/workspace_unix_test.go b/private/buf/cmd/buf/workspace_unix_test.go
2 index 22c84385..22548555 100644
3 --- a/private/buf/cmd/buf/workspace_unix_test.go
4 +++ b/private/buf/cmd/buf/workspace_unix_test.go
5 @@ -93,6 +93,8 @@ func TestWorkspaceAbsoluteFail(t *testing.T) {
6 // Workflow run: https://github.com/bufbuild/buf/actions/runs/6510804063/job/17685247791.
7 // Potential fix: https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows.
8 func TestWorkspaceGit(t *testing.T) {
9 + // Fails because the source checkout is not part of a git repository while building with nix
11 // Directory paths specified as a git reference within a workspace.
14 diff --git a/private/bufpkg/buftesting/buftesting.go b/private/bufpkg/buftesting/buftesting.go
15 index d9e1fdc6..6e08c439 100644
16 --- a/private/bufpkg/buftesting/buftesting.go
17 +++ b/private/bufpkg/buftesting/buftesting.go
18 @@ -104,6 +104,10 @@ func RunActualProtoc(
20 // GetGoogleapisDirPath gets the path to a clone of googleapis.
21 func GetGoogleapisDirPath(t *testing.T, buftestingDirPath string) string {
22 + // Requires network access, which is not available during
23 + // the nixpkgs sandboxed build
26 googleapisDirPath := filepath.Join(buftestingDirPath, testGoogleapisDirPath)