GitHunter icon indicating copy to clipboard operation
GitHunter copied to clipboard

Cannot install package

Open tobicodesstuff opened this issue 2 years ago • 7 comments

Currently the old installation command with 'go get' is not working anymore. I've tried installing the package via 'go install' but I am receiving an error message, see below.

'go install -v github.com/digininja/GitHunter@latest' -> ... ../../go/pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:43:16: cannot use user.ID (variable of type *int64) as *int value in struct literal ../../go/pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:73:26: cannot use repo.ID (variable of type *int64) as *int value in struct literal ../../go/pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:105:77: cannot use member.ID (variable of type *int64) as *int value in struct literal ../../go/pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/router.go:41:58: too few values in struct literal of type assetfs.AssetFS

Is there something I am doing wrong?

tobicodesstuff avatar Sep 13 '23 06:09 tobicodesstuff

The install is failing when it tries to install https://github.com/michenriksen/gitrob which I use the signatures from. gitrob won't be updated as @michenriksen has marked it as an archived project.

I was referencing the files through that project so GitHunter was always using the very latest copies, but as they won't be updated any more I'll grab copies of them and reference them locally. As long as @michenriksen is happy with that.

Seeing as I've not touched this project for 4 years, and Go for quite a while, it might take me a while to remember what I'm doing with it all to fix it.

digininja avatar Sep 14 '23 06:09 digininja

Thank you for your quick reply. I've seen that the project hasn't been touched in quite a while, but I find the concept highly interesting.

Additionally, I sadly do not possess the Go knowledge to perform any changes myself.

tobicodesstuff avatar Sep 14 '23 12:09 tobicodesstuff

I've removed the dependency on gitrob and it now builds fine.

I've updated the README with install instructions, they aren't the best, but as I need a patters file, I can't think of a better way to do it.

digininja avatar Sep 18 '23 14:09 digininja

Legend, thank you very much. Much love for the awesome tools, always a joy working with them!

tobicodesstuff avatar Sep 19 '23 06:09 tobicodesstuff

Any suggestions for improvements, let me know.

I might have a better way to do the install, I'll see if I've got time to get it working.

On Tue, 19 Sept 2023, 07:48 tobicodesstuff, @.***> wrote:

Closed #1 https://github.com/digininja/GitHunter/issues/1 as completed.

— Reply to this email directly, view it on GitHub https://github.com/digininja/GitHunter/issues/1#event-10406371558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWPP5XSZAQBV2MBP4XLX3E52HANCNFSM6AAAAAA4V4C4YY . You are receiving this because you commented.Message ID: @.***>

digininja avatar Sep 19 '23 06:09 digininja

Okay, I spoke too soon. I was able to successfully install the package via 'go install -v github.com/digininja/GitHunter@latest'.

'GitHunter -h' can be executed without a problem.

'GitHunter' and 'GitHunter -gitdir="."' or 'GitHunter -gitdir .' within 'leakyrepo' does not work.

FATA[0000] The specified patterns file does not exist

tobicodesstuff avatar Sep 19 '23 07:09 tobicodesstuff

That is correct, it won't work like that, you need to follow the install instructions.

The app needs the patterns file which you can't install with go install.

On Tue, 19 Sept 2023, 08:11 tobicodesstuff, @.***> wrote:

Reopened #1 https://github.com/digininja/GitHunter/issues/1.

— Reply to this email directly, view it on GitHub https://github.com/digininja/GitHunter/issues/1#event-10406586556, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWLMLC4ZER5MXUG2CHDX3FASNANCNFSM6AAAAAA4V4C4YY . You are receiving this because you commented.Message ID: @.***>

digininja avatar Sep 19 '23 07:09 digininja