diff options
| author | Jonathan Amsterdam <jba@google.com> | 2022-02-16 06:37:14 -0500 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2022-02-16 17:03:17 +0000 |
| commit | dab4127fd746b4e09496d0184758f296ff648760 (patch) | |
| tree | 1769c562084703f755a22634447252e1593ffb30 /cmd/pkgsite | |
| parent | 9a991af47a093f3f2bac2828c4dabe64c3cb7720 (diff) | |
| download | go-x-pkgsite-dab4127fd746b4e09496d0184758f296ff648760.tar.xz | |
cmd/pkgsite: remove -static flag
Change-Id: I63ea8fbe28c2e00776b295128ce945df65dec7b9
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/386074
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'cmd/pkgsite')
| -rw-r--r-- | cmd/pkgsite/main.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/pkgsite/main.go b/cmd/pkgsite/main.go index d6387759..af8ebbad 100644 --- a/cmd/pkgsite/main.go +++ b/cmd/pkgsite/main.go @@ -57,7 +57,6 @@ import ( const defaultAddr = "localhost:8080" // default webserver address var ( - staticFlag = flag.String("static", "", "OBSOLETE - DO NOT USE") gopathMode = flag.Bool("gopath_mode", false, "assume that local modules' paths are relative to GOPATH/src") httpAddr = flag.String("http", defaultAddr, "HTTP service address to listen for incoming requests on") useCache = flag.Bool("cache", false, "fetch from the module cache") @@ -77,10 +76,6 @@ func main() { flag.Parse() ctx := context.Background() - if *staticFlag != "" { - fmt.Fprintf(os.Stderr, "-static is ignored. It is obsolete and may be removed in a future version.\n") - } - paths := collectPaths(flag.Args()) if len(paths) == 0 && !*useCache && !*useProxy { paths = []string{"."} |
