go-enry / go-license-detector

Reliable project licenses detector.
Other
127 stars 36 forks source link

Make a shallow clone when cloning a git repository #7

Closed mx-psi closed 3 years ago

mx-psi commented 3 years ago

When cloning, set the Depth to one so that we don't fetch older commits unnecessarily

mx-psi commented 3 years ago

The linting and Windows tests seem to be failing because of an unrelated issue since they also failed for ba86d0a4360c12c9080e5df6eb65c5fb5d813c72 with the same issues

mx-psi commented 3 years ago

@bzz any chance you can have a look at this?

bzz commented 3 years ago

The linting and Windows tests seem to be failing because of an unrelated issue since they also failed for ba86d0a with the same issues

Indeed, a failing linter looks bad though and is worth creating an issue for.

mx-psi commented 3 years ago

Thanks for merging the PR!

Indeed, a failing linter looks bad though and is worth creating an issue for.

Looks like bumping the Github Action version might solve it

https://github.com/golangci/golangci-lint-action/issues/127#issuecomment-729139550