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

github doesn't add itself to the package list #21

Open
bquistorff opened this issue Sep 22, 2021 · 5 comments
Open

github doesn't add itself to the package list #21

bquistorff opened this issue Sep 22, 2021 · 5 comments

Comments

@bquistorff
Copy link
Contributor

I did a fresh install of github and used it to install rcall. During the installation process its dependency.do queried for the github version, which isn't in the dataset, giving the following error:

. quietly github version github
github package was not found

I'm not sure if this is a rcall or github issue.

@randrescastaneda
Copy link

Did you use github to install github? Say, github install haghish/github. If you do, it works fine.

image

@bquistorff

@bquistorff
Copy link
Contributor Author

No, I did a net install following the instructions).

@randrescastaneda
Copy link

Right. The problem is that github version reads from file g/github.dta , which is updated with the subcommand githubdb add. This subcommand is executed inside github install right after the Stata package is installed using net install. One solution is suggest the following in the instructions

net install github, from("https://haghish.github.io/github/")
github install haghish/github

or

net install github, from("https://haghish.github.io/github/")
githubdb add, address("haghish/github") username("haghish")  ///
		              reponame("github") name("github")

I know. It is overkill, but I don't see another way to solve it.

@bquistorff
Copy link
Contributor Author

If they are feasible, a few other options that don't require user changes could be:

  • github version has a special check for github.
  • github version (or any other command that depends on the info), first checks if it's listed in g/github.dta and if not, does the githubdb add.

@mronkko
Copy link

mronkko commented Sep 14, 2024

This is clearly a bug. If a user does not have github installed, they must use the "net install" method. But if this method is used, installing rcall fails unless the user realizes that they must install github twice for it to actually work.

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

3 participants