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

dagger install --export #7230

Open
shykes opened this issue May 1, 2024 · 0 comments
Open

dagger install --export #7230

shykes opened this issue May 1, 2024 · 0 comments

Comments

@shykes
Copy link
Contributor

shykes commented May 1, 2024

Problem

In monorepos, it's common for each sub-project of the repo to have its own submodule. But there is no easy way for the root module to "pass through" the functions of its submodules to the user. For example:

  • submodules frontend and backend are installed in the root module
  • dagger call frontend build won't work: instead dagger call -m frontend build is required.
  • dagger functions shows no functions

Solution

Allow specifying a dependency as exported. This passes through the dependency's types and functions to the parent's namespace.

Example:

  1. Export some dependencies
dagger install --export ./cli
dagger install --export ./engine
dagger install --export ./sdk
dagger install --export ./docs
  1. Inspect functions
$ dagger functions
cli
engine
sdk
docs
  1. call a function
dagger call cli build -o ./bin/dagger
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