cmd/distpack: exclude the .jj directory

The .jj directory is created by the JJ version control system, which
works on top of Git and is used by several Go contributors. Exclude this
directory from binary and source distributions.

Fixes #80408

Change-Id: I559d7bfa7991d52a059cb9aae279cd1d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/799983
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>
This commit is contained in:
Nick Ripley 2026-07-15 08:53:58 -04:00
parent 6561d9e488
commit c1657c45eb
2 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,7 @@ func main() {
".gitattributes",
".github/**",
".gitignore",
".jj/**",
"VERSION.cache",
"misc/cgo/*/_obj/**",
"**/.DS_Store",

View File

@ -30,6 +30,7 @@ var srcRules = []testRule{
{name: "go/.git", exclude: true},
{name: "go/.gitattributes", exclude: true},
{name: "go/.github", exclude: true},
{name: "go/.jj", exclude: true},
{name: "go/VERSION.cache", exclude: true},
{name: "go/bin/**", exclude: true},
{name: "go/pkg/**", exclude: true},
@ -48,6 +49,7 @@ var zipRules = []testRule{
{name: "go/.git", exclude: true},
{name: "go/.gitattributes", exclude: true},
{name: "go/.github", exclude: true},
{name: "go/.jj", exclude: true},
{name: "go/VERSION.cache", exclude: true},
{name: "go/bin", exclude: true},
{name: "go/pkg", exclude: true},
@ -84,6 +86,7 @@ var modRules = []testRule{
{name: "golang.org/toolchain@*/.git", exclude: true},
{name: "golang.org/toolchain@*/.gitattributes", exclude: true},
{name: "golang.org/toolchain@*/.github", exclude: true},
{name: "golang.org/toolchain@*/.jj", exclude: true},
{name: "golang.org/toolchain@*/VERSION.cache", exclude: true},
{name: "golang.org/toolchain@*/bin", exclude: true},
{name: "golang.org/toolchain@*/pkg", exclude: true},