pkgsite/doc
Jonathan Amsterdam 01af57e7dc internal/postgres,etc.: support bypassing license restrictions
Add a mode to postgres.DB where data is saved even if the module or
package is not redistributable.  This "bypassing license restrictions"
mode is off by default.

Add a flag to the worker binary to turn it on. Used a flag rather than
an environment variable so there is no way for ambient state to affect
the binary for this important decision.

Also:

- Add a test to verify that license data is removed/not removed
  depending on the bypass setting.

- Fix a bug where the new model insertion wasn't omitting
  documentation for non-redistributable modules.

- Fix a bug in internal/sample where the top-level readme wasn't
  getting populated.

A later CL will change the frontend to bypass the check.

For golang/go#39602
For golang/go#39629

Change-Id: I67a6d24c18f3b93cfbfc9ec2a20159c07a84e077
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/246957
Reviewed-by: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
2020-08-06 23:48:38 +00:00
..
architecture.png doc: fix architecture.png 2020-06-15 15:43:37 +00:00
design.md doc: fix go mod index and mirror urls 2020-08-06 13:23:35 +00:00
frontend.md doc: prettier-ed frontend.md and worker.md 2020-07-08 13:26:39 +00:00
postgres.md doc: update postgres.md 2020-06-23 20:59:53 +00:00
precommit.md doc: update precommit.md 2020-07-15 20:28:36 +00:00
worker.md internal/postgres,etc.: support bypassing license restrictions 2020-08-06 23:48:38 +00:00