Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Move go.mod files to match relative module path
Browse files Browse the repository at this point in the history
When creating module manager, the module name should
match the relative path and the require section should not
have a self reference.

Moving go.mod, go.sum to web_page_replay_go from web_page_replay_go/src
and removing reference to same catapult repo

Also updated default relative paths of wpr.cert, wpr.pem, and deterministic.js
as the go run location should be fine to be down one level.

Bug: chromium:1032253
Change-Id: I054cbea943aebfdcbbdce008cc663236777406c3
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2411338
Reviewed-by: John Chen <johnchen@chromium.org>
Commit-Queue: Ian Struiksma <ianstruiksma@google.com>
  • Loading branch information
Ian Struiksma authored and Commit Bot committed Sep 16, 2020
1 parent 4cb0981 commit d03abd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/catapult-project/catapult/web_page_replay_go
go 1.12

require (
github.com/catapult-project/catapult v0.0.0-20200609161508-2943cc478e46
github.com/kylelemons/godebug v1.1.0
github.com/urfave/cli v1.22.4
golang.org/x/net v0.0.0-20200602114024-627f9648deb9
Expand Down
2 changes: 0 additions & 2 deletions web_page_replay_go/src/go.sum → web_page_replay_go/go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/catapult-project/catapult v0.0.0-20200609161508-2943cc478e46 h1:o/EALEHp5ofNU/zxj/rQe23EGsvlsrVegZV3sY6oRUU=
github.com/catapult-project/catapult v0.0.0-20200609161508-2943cc478e46/go.mod h1:5s6fjiEbWCUU6D2xlcP+qYjZIR3WbMkDD6esOjw6kkY=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
Expand Down
6 changes: 3 additions & 3 deletions web_page_replay_go/src/wpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ func (certCfg *CertConfig) Flags() []cli.Flag {
return []cli.Flag{
cli.StringFlag{
Name: "https_cert_file",
Value: "../wpr_cert.pem",
Value: "wpr_cert.pem",
Usage: "File containing a PEM-encoded X509 certificate to use with SSL.",
Destination: &certCfg.certFile,
},
cli.StringFlag{
Name: "https_key_file",
Value: "../wpr_key.pem",
Value: "wpr_key.pem",
Usage: "File containing a PEM-encoded private key to use with SSL.",
Destination: &certCfg.keyFile,
},
Expand Down Expand Up @@ -134,7 +134,7 @@ func (common *CommonConfig) Flags() []cli.Flag {
},
cli.StringFlag{
Name: "inject_scripts",
Value: "../deterministic.js",
Value: "deterministic.js",
Usage: "A comma separated list of JavaScript sources to inject in all pages. " +
"By default a script is injected that eliminates sources of entropy " +
"such as Date() and Math.random() deterministic. " +
Expand Down

0 comments on commit d03abd8

Please sign in to comment.