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

🐞 Go: dagger functions treat constructor arg as a function #7410

Closed
wingyplus opened this issue May 19, 2024 · 3 comments
Closed

🐞 Go: dagger functions treat constructor arg as a function #7410

wingyplus opened this issue May 19, 2024 · 3 comments

Comments

@wingyplus
Copy link
Contributor

What is the issue?

I have a module that has 1 constructor argument and a run function. When I call dagger functions, the command treat constructor arg as a function.

Dagger version

0.11.4

Steps to reproduce

Use the module from https://github.com/wingyplus/daggerverse/tree/main/earthly. Then run dagger functions. You will see both function and constructor arg listed like the screenshot below:

Screenshot 2024-05-19 171753

Log output

No response

@wingyplus wingyplus added the kind/bug Something isn't working label May 19, 2024
@wingyplus
Copy link
Contributor Author

This get a little confuse because you cannot call with dagger call source... but it's dagger call --source....

@helderco
Copy link
Contributor

That’s expected because the source function that you’re seeing comes from the Source field in the Earthly struct. So you have both:

dagger call --source=. source entries

If you don’t want to create a function for that field, you can use // +private.

@helderco helderco closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
@wingyplus
Copy link
Contributor Author

Thank you 🙇‍♂️

@samalba samalba removed the kind/bug Something isn't working label May 31, 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

3 participants