Fix the PolyGerrit run-server.sh script

The go soy parser is not able to handle newer syntax changes and was
deemed to not be worth fixing. So this change removes the dependency
on the go soy parser by instead patching the server response when it
comes back.

Also removes that unused "prod" flag, which allowed pointing to a dist
directory that does not exist anymore.

Also renames some variables in the server.go script.

Tested by checking that tests are run and the proxy is usable:
http://localhost:8081/
http://localhost:8081/elements/core/gr-search-bar/gr-search-bar_test.html

Bug: Issue 10579
Change-Id: I1d2a155e93c9eb42ff72bfa56819f44a266f8fc5
This commit is contained in:
brohlfs
2019-03-21 15:56:47 +01:00
parent fb4ef32529
commit b60db4ee2e
3 changed files with 50 additions and 70 deletions

View File

@@ -68,12 +68,6 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()
# Dependencies for PolyGerrit local dev server.
go_repository(
name = "com_github_robfig_soy",
commit = "82face14ebc0883b4ca9c901b5aaf3738b9f6a24",
importpath = "github.com/robfig/soy",
)
go_repository(
name = "com_github_howeyc_fsnotify",
commit = "441bbc86b167f3c1f4786afae9931403b99fdacf",