-
Notifications
You must be signed in to change notification settings - Fork 351
Installing extension from private Gitlab repository #5827
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
Comments
Thank you for reporting this. First, could you upgrade Quarto to 1.3? Could you try to use a Note:
Depending on the page, it's not obvious if |
Thanks @mcanouil for the prompt response. I hope, you will still consider installing extensions from GitLab since I'm obliged to develop in the own institution. Otherwise I had already met people in our own premises, who are very interested on development and use of quarto extensions. Of course, it implies an additional effort for you and respect the focus on GitHub. |
It's supposed to work. There is two things here:
This is why I wanted you to try to install an extension as zip from GitHub, i.e., to rule out something fishy in your setup. |
Sorry, @mcanouil. I just realized that the project was by mistake private, now I made it public and you could test: quarto add https://gitlab.cc-asp.fraunhofer.de/quarto-extensions/mdz/-/archive/main/shorty-main.zip |
... and this was the solution. After making it public, I managed to install the extension 🥳 . |
Could you update the title to highlight the "private repo" aspect? |
In the end it's related to the following feature request to handle private repositories, see #4444 |
I think, this issue may be closed. |
Reopening this as it's still not possible to install from private repository as far as I can tell. |
This is related to quarto-dev/quarto-cli#5827
I made a PR to clarify #5827 (comment). |
As suggested initially by @cderv (#4444 (comment)) it would be great if Quarto was able to leverage usual credentials store. For GitHub:
For GitLab: |
Another vote for extension installation from a private repository. If possible, use existing configuration (credentials, SSH keys, etc) to obtain the targeted extension from the Git repository. If it helps, adding a private repository could require the full repository path, leaving the "username/repo" syntax for extensions in public repositories.
|
As a workaround which can be applied to any setup/host: export GIT_PAT=...
git clone --depth 1 "https://${GIT_PAT}@github.com/organisation/repository.git" /tmp/quarto-extension
quarto add /tmp/quarto-extension
rm -rf /tmp/quarto-extension
curl -L -H "Authorization: token ${GIT_PAT}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/organisation/repository/zipball/main \
-o /tmp/quarto-extension.zip
quarto add /tmp/quarto-extension.zip
rm -rf /tmp/quarto-extension.zip Use your preferred authentication method, especially for |
Bug description
I am having troubles by adding extensions from a GitLab repo, which I am developing. The extension seems to be downloaded but it fails when unzipping the zip-file.
Steps to reproduce
Expected behavior
The installed extension.
Actual behavior
An error message is retrieved:
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: