Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

🐛 go binary install is having package issue #48

Closed
ankittkp opened this issue Sep 6, 2023 · 11 comments
Closed

🐛 go binary install is having package issue #48

ankittkp opened this issue Sep 6, 2023 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@ankittkp
Copy link

ankittkp commented Sep 6, 2023

Docs Reference
https://docs.rig.dev/getting-started/cli-setup#from-source

Describe the bug
Right now go install is not working, it is giving output

go: finding module for package github.com/rigdev/rig/cmd/common
../go/pkg/mod/github.com/rigdev/rig/cmd/[email protected]/cmd/auth/get.go:11:2: module github.com/rigdev/rig@latest found (v1.1.0), but does not contain package github.com/rigdev/rig/cmd/common

To Reproduce
Steps to reproduce the behavior:
go install github.com/rigdev/rig/cmd/rig@main in fresh installation

Expected behavior
This should install the binary gracefully.

@blacksails
Copy link
Contributor

Thanks for the report 🙏. We are aware of the issue and working on a fix. Will keep this open for tracking 👍

@ankittkp
Copy link
Author

ankittkp commented Sep 6, 2023

Thanks for the report 🙏. We are aware of the issue and working on a fix. Will keep this open for tracking 👍

I think the fix is simple to upgrade you go dependencies to your latest version, is there any contributions guide let me know. I would like to contribute in this project.

@blacksails
Copy link
Contributor

I think the fix is simple to upgrade you go dependencies to your latest version, is there any contributions guide let me know. I would like to contribute in this project.

@andersjohnsen is working on it.

With regards to contributing, we should introduce a CONTRIBUTING.md. Feel free to create another issue for it :)

@ankittkp
Copy link
Author

ankittkp commented Sep 6, 2023

I think the fix is simple to upgrade you go dependencies to your latest version, is there any contributions guide let me know. I would like to contribute in this project.

@andersjohnsen is working on it.

With regards to contributing, we should introduce a CONTRIBUTING.md. Feel free to create another issue for it :)

Sure, here we go #48 (comment)

@blacksails
Copy link
Contributor

go install github.com/rigdev/rig/cmd/[email protected] works now go install github.com/rigdev/rig/cmd/rig@main does not. Lets keep this open until we solve it so that the CLI can be installed from any commit reference.

@ankittkp
Copy link
Author

ankittkp commented Sep 6, 2023

go install github.com/rigdev/rig/cmd/[email protected] works now go install github.com/rigdev/rig/cmd/rig@main does not. Lets keep this open until we solve it so that the CLI can be installed from any commit reference.

i guess this is installed, but something still wrong

➜ rig rig auth login [email protected]  
Error: unknown flag: --email
Usage:
  rig auth login [flags]

Flags:
  -h, --help              help for login
  -p, --password string   password of the user
  -u, --user string       useridentifier [username | email | phone number]

my version

➜  rig rig version -v                               
rig dev
commit: none
date: unknown

@andersjohnsen
Copy link
Member

Hi ankittkp. To log in, run the following:

rig auth login

and the CLI will take you through the steps.

We're working on improving this even further.

@ankittkp
Copy link
Author

ankittkp commented Sep 7, 2023

cool, that is successful. That means --email flag is having bug.

@blacksails blacksails changed the title go binary install is having package issue 🐛 go binary install is having package issue Nov 7, 2023
@blacksails blacksails added the bug Something isn't working label Nov 7, 2023
@andersjohnsen
Copy link
Member

Yes, email is deprecated in favor of none (interactive), or --username <email>.

@blacksails
Copy link
Contributor

❯ go install github.com/rigdev/rig/cmd/rig@main
go: downloading github.com/rigdev/rig v1.4.1-0.20231120092906-8f84f3ba00a3
go: finding module for package github.com/rigdev/rig/cmd/common
go: downloading github.com/rigdev/rig v1.4.0
go: found github.com/rigdev/rig/cmd/common in github.com/rigdev/rig v1.4.0
ambiguous import: found package github.com/rigdev/rig/cmd/rig in multiple modules:
        github.com/rigdev/rig v1.4.0 (/Users/blacksails/go/pkg/mod/github.com/rigdev/[email protected]/cmd/rig)
        github.com/rigdev/rig/cmd/rig v0.0.0-20230906091239-bd04b590bcf0 (/Users/blacksails/go/pkg/mod/github.com/rigdev/rig/cmd/[email protected])

@blacksails blacksails reopened this Nov 20, 2023
@andersjohnsen
Copy link
Member

Finally identified the issue: golang/go#64279

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants