Skip to content

Commit

Permalink
Ensure dist-newstyle directories are ignored everywhere.
Browse files Browse the repository at this point in the history
@tclem ran into an issue where he had built `semantic-source` from the
`semantic-source` directory; `cabal` placed a `dist-newstyle`
directory there, which was fouling up Bazel due to the fact that
`cabal` generates binary files called `BUILD`, and Bazel tries to
interpret these files as package configurations. Not good!

We can't use a glob here because .bazelignore files don't support
globbing (bazelbuild/bazel#7093), so it
suffices to ignore all the projects' `dist-newstyle` directories so
that no one runs into this again.
  • Loading branch information
patrickt authored and robrix committed Jul 16, 2020
1 parent e953b91 commit cf2b141
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
semantic/dist-newstyle
semantic-analysis/dist-newstyle
semantic-ast/dist-newstyle
semantic-codeql/dist-newstyle
semantic-core/dist-newstyle
semantic-go/dist-newstyle
semantic-java/dist-newstyle
semantic-json/dist-newstyle
semantic-parse/dist-newstyle
semantic-proto/dist-newstyle
semantic-python/dist-newstyle
semantic-ruby/dist-newstyle
semantic-scope-graph/dist-newstyle
semantic-source/dist-newstyle
semantic-tags/dist-newstyle
semantic-tsx/dist-newstyle
semantic-typescript/dist-newstyle
dist-newstyle
tmp

0 comments on commit cf2b141

Please sign in to comment.