Support shared code between multiple models
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 9.5k
- Forks
- 696
- Avg merge
- 7d 19h
- Merged PRs (30d)
- 2
Description
Suppose you have a directory structure like this:
model1/
cog.yaml
model2/
cog.yaml
shared/
somelib.py
It would be neat if there was an easy way to read shared from the models. Open to ideas.
The Docker way of doing this is to build from the parent directory and then specify the file with -f, but this is not ideal because then all the models have to support the working directory containing the parent directory, and you have to specify -f all the time to make it work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation files or tests are named. Start by tracing how each model's cog.yaml selects its Docker build context and how the -f workflow is handled; define supported behavior for the model1/model2/shared layout and tests that verify shared code is available without requiring a parent-directory working context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100