Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Does not install using go get #149

Open
xorima opened this issue May 23, 2021 · 1 comment
Open

Does not install using go get #149

xorima opened this issue May 23, 2021 · 1 comment

Comments

@xorima
Copy link

xorima commented May 23, 2021

Hi,

trying to use this for the first time, following the first example:

main.go:

package main

import (
	"fmt"

	"github.com/octokit/go-octokit/octokit"
)

func main() {
	client := octokit.NewClient(nil)

	url, err := octokit.UserURL.Expand(octokit.M{"user": "jingweno"})
	if err != nil {
		// Handle error
	}

	user, result := client.Users(url).One()
	if result.HasError() {
		// Handle error
	}

	fmt.Println(user.ReposURL) // https://api.github.com/users/jingweno/repos
}

Run:

go get github.com/octokit/go-octokit/octokit
github.com/octokit/go-octokit/octokit imports
        github.com/lostisland/go-sawyer/mediaheader: cannot find module providing package github.com/lostisland/go-sawyer/mediaheader

How do I install this module?

@zombieleet
Copy link

You have to do this go get -u github.com/octokit/go-octokit@master, looks like doing go get gives a broken version of go-octokit

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

No branches or pull requests

2 participants