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

rockspec: use https instead of git #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kikito
Copy link
Contributor

@kikito kikito commented Sep 13, 2022

Using git:// for direct linking is not supported by github any more, so the rock is uninstallable on its current state.

The simplest solution is changing the protocol from git:// to https://, and then push the new rockspec to luarocks.

A workaround exists - you can force git to always use https:// by using these settings:

git config --global url."https://github.com/".insteadOf git@github.com: git config --global url."https://".insteadOf git://

But ideally the rocks should be installable without such global config changes.

Using git:// for direct linking is not supported by github any more, so the
rock is uninstallable on its current state.

The simplest solution is changing the protocol from git:// to https://

A workaround exists - you can force git to always use https:// by using
these settings:

git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://

But ideally the rocks should be installable without such global config
changes.
source = {
url = "git://github.com/thibaultcha/lua-cassandra",
url = "https://github.com/thibaultcha/lua-cassandra",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have git+https as a better fix.

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

Successfully merging this pull request may close these issues.

2 participants