From 738affd42f95b0d099fc37438d2e8f0bdd9aac69 Mon Sep 17 00:00:00 2001 From: Keegan Carruthers-Smith Date: Wed, 13 Apr 2022 10:20:57 +0200 Subject: [PATCH] ignore go workspace files (#33827) This is a new feature in go1.18 to simplify working on multiple modules. For example I can easily test sourcegraph with local changes to zoekt by running the command: go work init . ../../google/zoekt/ These files shouldn't be committed, as they are files that are specific to someones task. Test Plan: my go.work file doesn't show up in git status --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 38f5856cb71..5cbcb54724e 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,6 @@ annotations/ # Buildkite analytics files test-reports/ + +# go workspace files shouldn't be committed +go.work