Closed jedi108 closed 4 years ago
@btracey Can you look into this?
$ go get -u -v gonum.org/v1/plot
Fetching https://gonum.org/v1/plot?go-get=1
Parsing meta tags from https://gonum.org/v1/plot?go-get=1 (status code 404)
get "gonum.org/v1/plot": found meta tag get.metaImport{Prefix:"gonum.org/v1/plot", VCS:"git", RepoRoot:"https://github.com/gonum/plot"} at https://gonum.org/v1/plot?go-get=1
gonum.org/v1/plot (download)
Fetching https://gonum.org/v1/plot/vg?go-get=1
Parsing meta tags from https://gonum.org/v1/plot/vg?go-get=1 (status code 404)
get "gonum.org/v1/plot/vg": found meta tag get.metaImport{Prefix:"gonum.org/v1/plot", VCS:"git", RepoRoot:"https://github.com/gonum/plot"} at https://gonum.org/v1/plot/vg?go-get=1
get "gonum.org/v1/plot/vg": verifying non-authoritative meta tag
Fetching https://gonum.org/v1/plot?go-get=1
Parsing meta tags from https://gonum.org/v1/plot?go-get=1 (status code 404)
github.com/golang/freetype (download)
Fetching https://golang.org/x/image/math/fixed?go-get=1
Parsing meta tags from https://golang.org/x/image/math/fixed?go-get=1 (status code 200)
<snip>
It looks like gonum.org is behaving oddly. Maybe this is related to the cert problems we are having with tests?
@jedi108 Changing the import paths is not the correct fix here.
Here is a working website
Last login: Wed Oct 31 21:58:53 on ttys004
brendan:~$ curl http://golang.org/x/image/tiff/lzw
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="golang.org/x/image git https://go.googlesource.com/image">
<meta name="go-source" content="golang.org/x/image https://github.com/golang/image/ https://github.com/golang/image/tree/master{/dir} https://github.com/golang/image/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/golang.org/x/image/tiff/lzw">
</head>
<body>
Nothing to see here; <a href="https://godoc.org/golang.org/x/image/tiff/lzw">move along</a>.
</body>
</html>
Our website has similar tags at the top, but then all of the 404 stuff.
I wonder if Hugo changed their 404 resolution, so we need to somehow make those pages exist?
brendan:~$ curl https://www.gonum.org/v1/plot
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="go-import" content="gonum.org/v1/gonum git https://github.com/gonum/gonum">
<meta name="go-import" content="gonum.org/v1/hdf5 git https://github.com/gonum/hdf5">
<meta name="go-import" content="gonum.org/v1/netlib git https://github.com/gonum/netlib">
<meta name="go-import" content="gonum.org/v1/plot git https://github.com/gonum/plot">
<meta name="go-import" content="gonum.org/v1/tools git https://github.com/gonum/tools">
<meta name="go-source" content="gonum.org/v1/gonum https://github.com/gonum/gonum/ https://github.com/gonum/gonum/tree/master{/dir} https://github.com/gonum/gonum/blob/master{/dir}/{file}#L{line}"/>
<meta name="go-source" content="gonum.org/v1/hdf5 https://github.com/gonum/hdf5/ https://github.com/gonum/hdf5/tree/master{/dir} https://github.com/gonum/hdf5/blob/master{/dir}/{file}#L{line}">
<meta name="go-source" content="gonum.org/v1/netlib https://github.com/gonum/netlib/ https://github.com/gonum/netlib/tree/master{/dir} https://github.com/gonum/netlib/blob/master{/dir}/{file}#L{line}"/>
<meta name="go-source" content="gonum.org/v1/plot https://github.com/gonum/plot/ https://github.com/gonum/plot/tree/master{/dir} https://github.com/gonum/plot/blob/master{/dir}/{file}#L{line}"/>
<meta name="go-source" content="gonum.org/v1/tools https://github.com/gonum/tools/ https://github.com/gonum/tools/tree/master{/dir} https://github.com/gonum/tools/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme" content="hugo-academic">
<meta name="generator" content="Hugo 0.27" />
<meta name="author" content="Gonum Numerical Packages">
<meta name="description" content="Consistent, composable, and comprehensible scientific code">
<link rel='stylesheet' href='https://d33wubrfki0l68.cloudfront.net/css/384624f7b31abdea686b0923d4771c7cee288772/css/highlight.min.css'/>
Maybe to do that on-the-fly website generation we need to use headless bundles? https://gohugo.io/content-management/page-bundles/#headless-bundle
here is what I did for go-hep.org: https://github.com/go-hep/go-hep.org/blob/master/main.go
I put a net/http
server in front and served the blog+news alongside the go-doc/go-get stuff.
i try command
dep ensure
The following errors occurred while deducing packages:
* "gonum.org/v1/plot/vg/vgimg": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
* "gonum.org/v1/plot/vg/draw": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
* "gonum.org/v1/plot": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
validateParams: could not deduce external imports' project roots
Hmmm... I'll try to look into this. If anyone knows how to help, any would be appreciated.
On Wed, Nov 14, 2018, 9:55 AM Vadim Tsurkov <notifications@github.com wrote:
i try command
dep ensure
The following errors occurred while deducing packages:
- "gonum.org/v1/plot/vg/vgimg": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
- "gonum.org/v1/plot/vg/draw": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
- "gonum.org/v1/plot": unable to deduce repository and source type for "gonum.org/v1/plot": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gonum.org/v1/plot?go-get=1": Get https://www.gonum.org/v1/plot?go-get=1: dial tcp 167.99.129.42:443: connect: connection refused
validateParams: could not deduce external imports' project roots
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gonum/plot/issues/481#issuecomment-438604147, or mute the thread https://github.com/notifications/unsubscribe-auth/ADgqW7HLonhpr41hleAYOsKIfNBBKb_1ks5uu-ijgaJpZM4YFTNt .
With the new module support as of 1.11.x, have you considered enabling GO111MODULE=on, from default GO111MODULE=auto, as a temporary measure? Though this might be causing all kinds of issues converging from dep to go. I followed these steps to get the module support going for one of my libraries: Moving from DEP to VGO (go mod) 1) export GO111MODULE=on 2) go mod init 3) go vendor 4) go build
tentatively closing this (out of old age)
(feel free to reopen, though)
Please, change imports correct paths to
github.com/gonum/plot'
fromgonum.org/v1/plot
gonum.org/v1/plot has 404
and problems: