Skip to content

make test fails with "command failed: git checkout master: -- error: pathspec 'master' did not match any file(s) known to git" #501

@szabgab

Description

@szabgab

I wanted to contribute a few test-cases so I cloned the shards repository ran make that was successful
then I ran make test and got several exceptions:

crystal spec spec/unit/git_resolver_spec.cr:31 # Shards::GitResolver normalizes github bitbucket gitlab sources
crystal spec spec/unit/git_resolver_spec.cr:56 # Shards::GitResolver available releases
crystal spec spec/unit/git_resolver_spec.cr:61 # Shards::GitResolver latest version for ref
crystal spec spec/unit/git_resolver_spec.cr:78 # Shards::GitResolver versions for
crystal spec spec/unit/git_resolver_spec.cr:89 # Shards::GitResolver read spec for release
crystal spec spec/unit/git_resolver_spec.cr:95 # Shards::GitResolver read spec for commit
crystal spec spec/unit/git_resolver_spec.cr:102 # Shards::GitResolver install
crystal spec spec/unit/git_resolver_spec.cr:114 # Shards::GitResolver install commit
crystal spec spec/unit/git_resolver_spec.cr:121 # Shards::GitResolver origin changed
crystal spec spec/unit/git_resolver_spec.cr:165 # Shards::GitResolver renders report version
crystal spec spec/unit/git_resolver_spec.cr:170 # Shards::GitResolver #matches_ref

How can I ran the tests?

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