Skip to content

Feature request: find cue.mod in parent directory #405

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

Open
yujunz opened this issue Jun 26, 2024 · 1 comment
Open

Feature request: find cue.mod in parent directory #405

yujunz opened this issue Jun 26, 2024 · 1 comment

Comments

@yujunz
Copy link

yujunz commented Jun 26, 2024

It seems currently timoni looks for cue.mod in the current directory only.

timoni mod vendor crds -f crd.yaml
9:28PM ERR cue.mod not found in the module path

It would be nice to find the main module in a parent directory as cue does.

See https://cuelang.org/docs/reference/modules/#glossary

main module: The module in which the cue command is invoked. The main module is defined by a cue.mod/module.cue file in the current directory or a parent directory. See Modules, packages, and versions.

@applejag
Copy link
Contributor

I reported this a while ago in #142 but that was closed because timoni needs its own cue.mod per module/chart to be able to do its OCI bundles. Apparently using a reusable cue.mod is unsupported because of technical limitations.

This also makes using timoni quite painful for monorepos, which is a blocker for me. I'm just checking up on Timoni from time to time to see if they've made any changes when it comes to better supporting monorepo patterns, but still this is not the case.

I still think it would be better to lean in to cue's own package and module system instead of inventing something new on top of cue because it breaks so much of the benefits from cue.

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

2 participants