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

Cannot install gorilla/mux with new install command of go #741

Closed
1 task done
foragerDev opened this issue Nov 26, 2023 · 2 comments
Closed
1 task done

Cannot install gorilla/mux with new install command of go #741

foragerDev opened this issue Nov 26, 2023 · 2 comments
Labels

Comments

@foragerDev
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

when I run this command its says something liket his:

PS C:\Users\DELL\shop-server> go install github.com/gorilla/mux@latest
package github.com/gorilla/mux is not a main package

Expected Behavior

It should install the package

Steps To Reproduce

Just try to install this package on go 1.20.

Anything else?

No response

@foragerDev foragerDev added the bug label Nov 26, 2023
@jdlms
Copy link

jdlms commented Nov 26, 2023

mux is a library, not an executable. Instead of using the install command, add this to your imports: "github.com/gorilla/mux" and then run go mod tidy.

@coreydaley
Copy link
Contributor

You can also use the go get command to add it to your project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants