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

Feature Idea: Allow pastaing only subset of dependencies #9

Open
Nearoo opened this issue Jan 9, 2024 · 0 comments
Open

Feature Idea: Allow pastaing only subset of dependencies #9

Nearoo opened this issue Jan 9, 2024 · 0 comments

Comments

@Nearoo
Copy link
Contributor

Nearoo commented Jan 9, 2024

If a project has dependencies to multiple different places that might independently update, it might not be desirable to always copy all dependencies whenever pasta is executed.

Idea: Let users have multiple yaml files that list dependencies in a dedicated directory called .pasta. The names of each yaml servers as an identifier for the dependencies inside, and can be copied with pasta <name>.

Example directory structure

.pasta/
    foo.yaml
    bar.yaml
    baz.yaml

example commands:

pasta
pasta foo
pasta foo bar

Behaviour:

  • Running pasta foo will copy all dependencies in foo.yaml, and generat generate foo.result.yaml placed inside .pasta
  • Dependencies are read in alphabetical order, overwriting files will result in an error
  • Running just pasta will execute all dependencies
  • Users choose between having one top-level pasta.yaml, or multiple files in a .pasta/ directory; having both results in an error. Otherwise, it's not clear how only pasta.yaml (and no deps in the directory) should be executed

More commands:
pasta -l could list all dependencies. If dependencies are in a .pasta directory, a field description at top level can add a short description of what the dependencies in a file copy. Example output:

> pasta -l
Only toplevel pasta.yaml found; copy using "pasta"
> pasta -l
Found depencencies:
    proto - .proto files from repo xzy
    textures - texture images from repo abc
@Nearoo Nearoo changed the title Feature Idea: Allow pastaing only part of dependencies Feature Idea: Allow pastaing only subset of dependencies Jan 9, 2024
@Nearoo Nearoo pinned this issue Jan 10, 2024
@Nearoo Nearoo unpinned this issue Jan 10, 2024
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

No branches or pull requests

1 participant