-
Notifications
You must be signed in to change notification settings - Fork 615
Add cog pull #2386
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
Add cog pull #2386
Conversation
* Create a client for interacting with the API
…tracting an archive containing symbolic links Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
* Allow automatic deferment of close on response
* Security warnings have been accounted for by resolving the path and making sure it is within the project directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @8W9aG I could do with some context on this one ideally a PR description with an example of the changes.
It looks like it's implemented:
cog pull r8.im/pipelines-beta/hn-search
But when I run this I get:
Bad response: 404 attempting to fetch the image source
If I run cog pull
on it's own in a directory I get:
cog.yaml not found in /Users/Aron/Code/cog-examples (or in any parent directories)
If I run cog pull --help
I get:
ⅹ unknown command "pull" for "cog"
ⅹ
ⅹ Did you mean this?
ⅹ push
ⅹ
I think this is entirely for pipelines at the moment right? So I think we should use the --x-pipeline
flag and leave off the r8.im
identifier for now.
cog pull --x-pipeline pipelines-beta/hn-search
If no pipeline flag is provided we can have an error message that says use docker pull to get images for now.
The rest of it I'm not sure why it's not working, the API code looks correct.
Co-authored-by: Aron Carroll <aron@replicate.com> Signed-off-by: Will Sackfield <will.sackfield@gmail.com>
@aron Made the following changes:
|
@8W9aG seems to work in the cog directory, if I run the binary outside of the project directory I get an error message... |
This seems very odd, I did the following test:
Can you run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is working great 👍
Uh oh!
There was an error while loading. Please reload this page.