Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation using the go install command fails due to inconsistent module namespace declaration #92

Open
RogueScholar opened this issue Mar 24, 2024 · 0 comments

Comments

@RogueScholar
Copy link

Salutations,

While attempting to "cut out the middleman" and arrive at a locally-compiled binary of this module, I passed the following command to the Go 1.21 executable that was running on Windows 11 with commands passed to a PowerShell 7.4 shell with elevated permissions. I received the following diagnostic information when the compilation it initiated failed:

> go install github.com/onemorebsmith/kaspa-stratum-bridge/cmd/kaspabridge@latest
  go: downloading github.com/onemorebsmith/kaspa-stratum-bridge v1.1.71
  go: github.com/onemorebsmith/kaspa-stratum-bridge/cmd/kaspabridge@latest: version constraints conflict:
          github.com/onemorebsmith/[email protected]: parsing go.mod:
          module declares its path as: github.com/onemorebsmith/kaspastratum
                  but was required as: github.com/onemorebsmith/kaspa-stratum-bridge

I attempted to pivot based on the information provided above and tried this incantation instead, however it was even less successful than the first:

> go install github.com/onemorebsmith/kaspastratum@latest
  go: github.com/onemorebsmith/kaspastratum@latest: module github.com/onemorebsmith/kaspastratum: git ls-remote -q origin in 
  ${Env:GOPATH}\pkg\mod\cache\vcs\09fc058104eb52193859cbc26d7e4a9d79a159185bdc82fb83e1cd98e7e9c643: exit status 128:
        remote: Repository not found.
        fatal: repository 'https://github.com/onemorebsmith/kaspastratum/' not found

Prefaced with the obligatory admission that I have essentially zero prior knowledge of Golang and its package ecosystem and an apology if I'm jumping to a laughably absurd conclusion, this would seem to suggest to me, at least prima facie, that the module declaration found here…

"github.com/onemorebsmith/kaspastratum/src/kaspastratum"

…should be modified to match the repository's current URL, doesn't it? It would be good to provide prospective users with a concise and reliable one-line incantation to compile the module, wouldn't you agree? I'm interested to hear your thoughts on how best to accomplish this, and if you can provide a roadmap for the changes required that's accessible to someone with experience in software development in languages other than Golang, I'm more than amenable to prepare a PR to help get the project there.

With patience and warmth,
Peter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant