Skip to content

go get fails #290

Description

@prologic

Describe the bug

This should be go get-able. It fails currently. Is master green?

Steps to reproduce the behavior

  1. Run go get github.com/cli/cli/tree/master/cmd/gh

Expected vs actual behavior

It installed/compiles without failure.

Logs

$ go get github.com/cli/cli/tree/master/cmd/gh
package github.com/cli/cli/tree/master/cmd/gh: cannot find package "github.com/cli/cli/tree/master/cmd/gh" in any of:
	/usr/local/Cellar/go/1.13.4/libexec/src/github.com/cli/cli/tree/master/cmd/gh (from $GOROOT)
	/Users/prologic/go/src/github.com/cli/cli/tree/master/cmd/gh (from $GOPATH)

Activity

  1. mislav commented on Feb 1, 2020

    @mislav
    Contributor

    @prologic Our project certainly is go get-able, if you use the right package name:

    go get github.com/cli/cli/cmd/gh
    

    Not that while go get operates with what might look like GitHub URLs, it doesn't actually support pasting full GitHub URLs such as those containing tree/BRANCH. The correct package identifier to use is usually github.com/OWNER/REPO/PACKAGE

  2. prologic commented on Feb 1, 2020

    @prologic
    Author

    Oh 🤷‍♂️I should nto do things when I'm tired at midnight :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions