-
Notifications
You must be signed in to change notification settings - Fork 15
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
internal R packages on Gitlab #278
Comments
Thanks for reporting this, I think I know what the issue is: we have a test on the url to check for the "github" string but should also allow for the "gitlab" string (and perhaps others): https://github.com/b-rodrigues/rix/blob/c64ccaa34eb48ae4dcd78148ace211f72eebcb16/R/nix_hash.R#L11 I’ll try to fix this asap |
Can you try with the latest rix from this branch: https://github.com/b-rodrigues/rix/tree/gitlab |
Hello Bruno, Thank you very much for your swift responses! I appreciate your effort. |
Maybe try to run export NIX_SSL_CERT_FILE = path/to/cert and then nix-build |
export NIX_SSL_CERT_FILE = /home/UserName/.ssh/id_rsa.pub Maybe I am doing something ignorant here, but this does not work. In the nix.conf file stands the following under access tokens: access-tokens
|
You’re trying to provide your public ssh key, but you should provide your SSL certificate. Usually it’s in the .pem or .crt format. You’ll probably need to connect to your corporate gitlab and generate the certificate from the url bar (depends on the browser): https://medium.com/@menakajain/export-download-ssl-certificate-from-server-site-url-bcfc41ea46a2 I’m not quite sure this is going to work though, you might need to ask your IT dep for a certificate instead. |
I also have a cacert.pem file but I still get the following error when trying to specify: export NIX_SSL_CERT_FILE = ~/cacert.pem I also tried it with our company specific .crt file but I get the same error. and |
Hi @InkaSpy were you able to solve this issue? The latest rix now should be able to install packages from Gitlab as well, but I'm not sure if it would help solve the certificate issue in any way? |
Hello,
in the great rladies talk you gave where you introduced rix, you also mentioned that we can also install internal packages. Our company is working via Gitlab instead of GitHub and we manage access to repositories via ssh. Until now, I was unable to install the internal packages with rix() by using the
git_pks= list(list(package_name = "ownpackage", repo_url = "https://gitlab.roqs.COMPANYname.net/data-science/data-analytics/data-analytics-biology/products/statistitox" , commit = "blablablabla"))... command. The error message is: "repo_url argument is wrong. Please provide an url to a Github repoto install a package from Github, or to the CRAN Archive to install apackage from the CRAN archive."
I can of course install the tarball, but I would rather install the respective packages directly.
The text was updated successfully, but these errors were encountered: