Skip to content

Conversation

@ethulia
Copy link
Contributor

@ethulia ethulia commented Aug 21, 2025

No description provided.

Copy link
Member

@zeke zeke left a comment

Choose a reason for hiding this comment

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

Tested it locally. Works like a charm.

Build

cd cog
make install PREFIX=$(go env GOPATH)

Test (online)

mkdir cog-init-with-agents-file-online
cd cog-init-with-agents-file-online
~/go/bin/cog init --x-pipeline

Setting up the current directory for use with Cog...

✅ Created /Users/z/Desktop/foo-download-agents-on-init/.dockerignore
✅ Created /Users/z/Desktop/foo-download-agents-on-init/AGENTS.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/README.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/cog.yaml
✅ Created /Users/z/Desktop/foo-download-agents-on-init/main.py
✅ Created /Users/z/Desktop/foo-download-agents-on-init/requirements.txt

Done! For next steps, check out the docs at https://cog.run/getting-started

Test (offline)

mkdir cog-init-with-agents-file-offline
cd cog-init-with-agents-file-offline
$ ~/go/bin/cog init --x-pipeline

Setting up the current directory for use with Cog...

✅ Created /Users/z/Desktop/foo-download-agents-on-init/.dockerignore
Failed to download AGENTS.md: failed to fetch AGENTS.md: Get "https://replicate.com/docs/reference/pipelines/llms.txt": dial tcp [2606:4700:20::ac43:4557]:443: connect: no route to host
Using template version instead...
✅ Created /Users/z/Desktop/foo-download-agents-on-init/AGENTS.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/README.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/cog.yaml
✅ Created /Users/z/Desktop/foo-download-agents-on-init/main.py
✅ Created /Users/z/Desktop/foo-download-agents-on-init/requirements.txt

Done! For next steps, check out the docs at https://cog.run/getting-started

@zeke
Copy link
Member

zeke commented Aug 21, 2025

Not the most glamorous error here, but it's the truth:

Failed to download AGENTS.md: failed to fetch AGENTS.md: Get "https://replicate.com/docs/reference/pipelines/llms.txt": dial tcp [2606:4700:20::ac43:4557]:443: connect: no route to host
Using template version instead...

@ethulia
Copy link
Contributor Author

ethulia commented Aug 22, 2025

Thanks for testing @zeke! What do you think of making the error simpler? Made the change in most recent commit: https://github.com/replicate/cog/pull/2504/commits

@zeke
Copy link
Member

zeke commented Aug 25, 2025

Tiny code change suggestion, but not a deal-breaker. Let's ship this! 👍🏼

@ethulia ethulia merged commit e862f4e into main Aug 25, 2025
26 checks passed
@ethulia ethulia deleted the ml/download-init branch August 25, 2025 16:54
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.

3 participants