Skip to content

Commit

Permalink
gitea: fix build because of multiple Go packages in the same directory (
Browse files Browse the repository at this point in the history
google#9350)

The repo has a file named `external_renderer.go`, which belongs to the
`main` package and is located in the same directory as the fuzz tests,
which belong to the `fuzz` package. This causes a build failure, and no
fuzzers can be built.
  • Loading branch information
kyakdan authored and eamonnmcmanus committed Mar 15, 2023
1 parent 48bb96b commit 33d1245
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/gitea/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
#
################################################################################

# external_renderer.go belongs to the main package and is located in the same directory
# as the fuzz tests which belong to the fuzz package. This causes a build failure and
# no fuzzers can be built.
rm -f $SRC/gitea/tools/external_renderer.go

compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkdownRenderRaw fuzz_markdown_render_raw gofuzz
compile_go_fuzzer code.gitea.io/gitea/tools FuzzMarkupPostProcess fuzz_markup_post_process gofuzz

0 comments on commit 33d1245

Please sign in to comment.