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

kraft pkg pull no longer works with GitHub sources #1114

Open
craciunoiuc opened this issue Dec 22, 2023 · 3 comments
Open

kraft pkg pull no longer works with GitHub sources #1114

craciunoiuc opened this issue Dec 22, 2023 · 3 comments
Assignees
Labels
kind/bug Something isn't working priority/medium Issue which is important, but KraftKit is usable without it also.

Comments

@craciunoiuc
Copy link
Member

Describe the bug

In previous versions of kraft, commands like this used to work:

kraft pkg pull github.com/unikraft/lib-nginx.git
W  could not get index: GET https://github.com/v2/unikraft/lib-nginx.git/manifests/latest: unexpected status code 404 Not Found: Not Found
W  could not find github.com/unikraft/lib-nginx.git
E  no processes to perform

Steps to reproduce

  1. run kraft pkg update
  2. run kraft pkg pull github.com/unikraft/lib-nginx.git

Expected behavior

Library is pulled in the path: .unikraft/libs/<libname>

Which architectures were you using or does this bug affect?

x86_64

Which operating system were you using or does this bug affect?

linux/debian

Relevant log output

No response

@craciunoiuc craciunoiuc added the kind/bug Something isn't working label Dec 22, 2023
@github-project-automation github-project-automation bot moved this to 🧊 Icebox in KraftKit Roadmap Dec 22, 2023
@unsuman
Copy link

unsuman commented Feb 21, 2024

I've been trying to solve this issue recently and have some inquiries on my mind. Is it similar to the functionality of git clone? Could you offer alternative resources or links beyond what's provided in the documentation that can be used with kraft pkg pull?

@craciunoiuc
Copy link
Member Author

There are two methods, ssh and http

With ssh, it's only git, with http it's archive + git.

Git-way means it uses a go-git library to fetch sources with history.
Archive-way means you just fetch files for a given tag/branch like you would do from the github UI.

@craciunoiuc craciunoiuc added the priority/medium Issue which is important, but KraftKit is usable without it also. label Feb 29, 2024
@craciunoiuc craciunoiuc moved this from Backlog to Ready in KraftKit Issue Priority List Feb 29, 2024
@craciunoiuc
Copy link
Member Author

status update:

This happens because the package name needs to be used and that one does not match the url provided, so further investigation is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working priority/medium Issue which is important, but KraftKit is usable without it also.
Projects
Status: Ready
Status: 🧊 Icebox
Development

No branches or pull requests

3 participants