Skip to content

Running from source with go run is not able to pull dependencies #2593

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

Open
emad-elsaid opened this issue Mar 23, 2025 · 0 comments
Open

Running from source with go run is not able to pull dependencies #2593

emad-elsaid opened this issue Mar 23, 2025 · 0 comments

Comments

@emad-elsaid
Copy link

  • Go allow running programs directly from source repositories.
  • Trying to run yay with go run github.com/jguer/yay@latest raises an error related to go-alpm
  • It seems the package go.mod package name doesn't match the URL (J/j)
➜ go run github.com/jguer/yay@latest
go: downloading github.com/jguer/yay v8.1173.0+incompatible
go: finding module for package github.com/mikkeloscar/aur
go: finding module for package github.com/Morganamilo/go-srcinfo
go: finding module for package github.com/Morganamilo/go-pacmanconf
go: finding module for package github.com/jguer/go-alpm
go: downloading github.com/mikkeloscar/aur v0.0.0-20200113170522-1cb4e2949656
go: downloading github.com/jguer/go-alpm v0.0.0-20200405152916-a3feea4322e9
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: found github.com/Morganamilo/go-pacmanconf in github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: found github.com/Morganamilo/go-srcinfo in github.com/Morganamilo/go-srcinfo v1.0.0
go: found github.com/jguer/go-alpm in github.com/jguer/go-alpm v0.0.0-20200405152916-a3feea4322e9
go: found github.com/mikkeloscar/aur in github.com/mikkeloscar/aur v0.0.0-20200113170522-1cb4e2949656
go: github.com/jguer/yay imports
	github.com/jguer/go-alpm: github.com/jguer/[email protected]: parsing go.mod:
	module declares its path as: github.com/Jguer/go-alpm
	       but was required as: github.com/jguer/go-alpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant