Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep init fails if GOPATH has a checked out branch not present in remote #216

Closed
@groob

Description

@groob

Today, I tried to run dep init on a new repo https://github.com/groob/autopkgd which resulted in the following errors:

ouchie, solve error: No versions of github.com/groob/plist met constraints:
           empty_data: Unable to update checked out version: fatal: reference is not a tree: 94c3023a0ab2ab1ae7ca10cf1b1416d00c0b77a0

           master: Could not introduce github.com/groob/plist@master, as it is not allowed by constraint empty_data from project github.com/groob/autopkgd.No versions of github.com/groob/plist met constraints:
           empty_data: Unable to update checked out version: fatal: reference is not a tree: 94c3023a0ab2ab1ae7ca10cf1b1416d00c0b77a0

           master: Could not introduce github.com/groob/plist@master, as it is not allowed by constraint empty_data from project github.com/groob/autopkgd.

turns out, $GOPATH/src/github.com/groob/plist had a branch other than master checked out and the changes in that branch were not pushed to github.

git checkout master on the plist repo, and then running dep init again worked.

This issue sounds similar to #158 but I wasn't sure so I'm filing a new issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions