-
Notifications
You must be signed in to change notification settings - Fork 589
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
✨ Allow cache volumes as CLI parameters #6409
Comments
I usually author the module to manage the cache volumes. Curious about the use cases for wanting to provide the cache volume's name in the CLI. |
I had some trouble with pipelines running in parallel using the same cache: #3345 (comment) |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you trying to do?
I have a module with the following constructor:
Currently, running this module in the CLI fails due to CacheVolume being an unsupported CLI argument:
Given cache volumes are created by their names (and that other types of objects, like files, are also referenced simply by their path or ID), I think it would be useful to do the same for cache volumes. In this instance:
❯ dagger call -m "github.com/sagikazarmark/daggerverse/go@main" --mod-cache go-build
An alternative I can imagine is adding a pragma comment for ignoring certain arguments from the CLI, but including them in the generated code. That's a temporary measure, but would still be easier for module developers, so they can utilize constructors instead of falling back to method chaining for tasks like setting cache.
Why is this important to you?
No response
How are you currently working around this?
I will probably remove those arguments from the constructor for now.
I might add them to the module API, but honestly, I'd rather not.
The text was updated successfully, but these errors were encountered: