Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical howett.net/plist package is not "go gettable" #33

Closed
lsegal opened this issue Nov 28, 2017 · 3 comments
Closed

Canonical howett.net/plist package is not "go gettable" #33

lsegal opened this issue Nov 28, 2017 · 3 comments

Comments

@lsegal
Copy link

lsegal commented Nov 28, 2017

I am running into an issue with dep ensure in which dep expects the howett.net/plist package to be "go gettable", in other words, that it follows the same "Remote import paths" lookup rules expected by go get. It turns out this package is not following these rules properly.

The end result is that dep ensure returns the following error:

$ dep ensure
...
✗ unable to deduce repository and source type for "howett.net/plist": unable to read metadata: go-import metadata not found

Which is a cryptic version of the more understandable error printed by go get howett.net/plist:

$ go get howett.net/plist
package howett.net/plist: unrecognized import path "howett.net/plist" (parse https://howett.net/plist?go-get=1: no go-import meta tags ())

Unfortunately this means I can't use howett.net/plist as my canonical import with dep right now, since dep currently does not support custom package names in its constraint solver; a detailed discussion can be found at golang/dep#1267 but tl;dr, it doesn't seem like dep plans on supporting packages that are not "go gettable".

Fortunately this is fairly easily resolved by adding a /plist URI to howett.net that responds with something (HTML?) containing:

<meta name="go-import" content="howett.net/plist git https://github.com/DHowett/go-plist">

I'm not sure if that used to be there and disappeared or if dep changed its behavior, but could this be added (back?) to your domain?

The only other option I have is to move over to github.com/DHowett/go-plist, but I read in #22 that you explicitly do not want that name to be used.

@DHowett
Copy link
Owner

DHowett commented Nov 28, 2017

This should now be fixed. The letsencrypt installer disabled the go get redirect on howett.net.

Thanks for the report!

@DHowett DHowett closed this as completed Nov 28, 2017
@DHowett
Copy link
Owner

DHowett commented Nov 28, 2017

(and now that I'm home: fix confirmed through dep)

@lsegal
Copy link
Author

lsegal commented Nov 28, 2017

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants