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
#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 Jan 5, 2023
1 parent 688d326 commit b6ce1d4
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 b6ce1d4

Please sign in to comment.