goclone icon indicating copy to clipboard operation
goclone copied to clipboard

[BUG] go install broken

Open KaiReichart opened this issue 8 months ago • 2 comments

🎯 Describe the Bug

The README states, that the cli tool can be installed by running go install github.com/goclone-dev/goclone/cmd/goclone@latest. It seems like the project was moved to another organisation, but the latest release contains the imthaghost organisation as the path in go.mod.

go install github.com/goclone-dev/goclone/cmd/goclone@latest

go: github.com/goclone-dev/goclone/cmd/goclone@latest: version constraints conflict:
        github.com/goclone-dev/[email protected]: parsing go.mod:
        module declares its path as: github.com/imthaghost/goclone
                but was required as: github.com/goclone-dev/goclone

Running go install github.com/imthaghost/goclone/cmd/goclone@latest works as expected.

📝 To Reproduce

go install github.com/goclone-dev/goclone/cmd/goclone@latest

✨ Expected Behavior

Installing the tool works.

💻 Environment

  • OS: macOS Sequoia 15.5
  • Go version: go1.24.3

KaiReichart avatar Jun 08 '25 12:06 KaiReichart

same here:

go install github.com/goclone-dev/goclone/cmd/goclone@latest
go: downloading github.com/goclone-dev/goclone v1.2.1
go: github.com/goclone-dev/goclone/cmd/goclone@latest: version constraints conflict:
	github.com/goclone-dev/[email protected]: parsing go.mod:
	module declares its path as: github.com/imthaghost/goclone
	        but was required as: github.com/goclone-dev/goclone

FoodChain1028 avatar Jun 10 '25 08:06 FoodChain1028

Same

malnossi avatar Jun 12 '25 14:06 malnossi

go install github.com/imthaghost/goclone/cmd/goclone@latest Work for me

1neZe0 avatar Aug 13 '25 17:08 1neZe0

Thanks for reporting this. The issue with v1.2.1 was that its commit still referenced the old module path github.com/imthaghost/goclone/cmd/goclone in go.mod, which broke installs. We’ve moved the repo to the new organization and published a new release with the corrected module path, so the problem is resolved.

Please update to the latest release (or v1.2.2+):

/ # go install github.com/goclone-dev/goclone/cmd/goclone@latest
go: downloading github.com/goclone-dev/goclone v1.2.2
go: downloading github.com/spf13/cobra v1.9.1
...

/ # /root/go/bin/goclone
Usage:
  goclone <url> [flags]

Flags:
  -C, --cookie strings        Pre-set these cookies
  -h, --help                  help for goclone
  -o, --open                  Automatically open project in deafult browser
  -p, --proxy_string string   Proxy connection string. Support http and socks5 https://pkg.go.dev/github.com/gocolly/colly#Collector.SetProxy
  -s, --serve                 Serve the generated files using Echo.
  -P, --servePort int         Serve port number. (default 5000)
  -u, --user_agent string     Custom User Agent

If you still see errors, try clearing the module cache:

go clean -modcache

Please reopen the issue if the error persists.

mesaglio avatar Aug 20 '25 01:08 mesaglio