maximbaz / yubikey-touch-detector

A tool to detect when your YubiKey is waiting for a touch (to send notification or display a visual indicator on the screen)
ISC License
410 stars 31 forks source link

go install not working #52

Open karampok opened 8 months ago

karampok commented 8 months ago

Hello, very cool tool, not sure if that can be local config issue but I get this


)> go install github.com/maximbaz/yubikey-touch-detector@latest
go: github.com/maximbaz/yubikey-touch-detector@latest (in github.com/maximbaz/yubikey-touch-detector@v0.0.0-20240114104910-3b3aaaf91c5e):
        The go.mod file for the module providing named packages contains one or
        more replace directives. It must not contain directives that would cause
        it to be interpreted differently than if it were the main module.
> go version
go version go1.21.1 linux/amd64
> go install github.com/maximbaz/yubikey-touch-detector@1.10.1
(works)
maximbaz commented 8 months ago

@mochaaP do you think we would be able to avoid using replace directive, e.g. importing your fork directly?

thanks for the nice catch @karampok!

mochaaP commented 8 months ago

Yup, but I'd like to see upstream merging that if possible!

Hope they could pick this up soon :)

mochaaP commented 8 months ago

Upstream is working to merge the change. Should be able to remove the replace directive soon.

Hyask commented 3 months ago

I just hit the same thing today. I know nothing of go, is there a workaround I can try in the meantime?

mochaaP commented 3 months ago

@Hyask:

For now, git clone this repo and run go build to build this. You can then copy the compiled binary to your preferred bin folder.

Hyask commented 3 months ago

Yes, thanks. I ended up with a git clone and then go install, which worked fine. Unfortunately it the software didn't work right away, so I might come up with an issue once I'll have investigated that and will have enough information.