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 Request] - Pass a custom file as the dub.json #2684

Closed
MrcSnm opened this issue Aug 10, 2023 · 4 comments
Closed

[Feature Request] - Pass a custom file as the dub.json #2684

MrcSnm opened this issue Aug 10, 2023 · 4 comments

Comments

@MrcSnm
Copy link
Contributor

MrcSnm commented Aug 10, 2023

System information

  • dub version: (e.g. dub 1.3.0)
  • OS Platform and distribution: (e.g. Windows 10, Linux Ubuntu 16.04)
  • compiler version (e.g. dmd-2.074.1)

Feature Description

Right now, dub only accepts directories. The only way to build a dub.json located in another directory is by using --root. The problem about this approach is that it still required a file to be named dub.json and the path will be relative to the root directory. I'm needing some way to pass a custom path for the dub.json and use the current directory as the cwd.

Expected Behavior

Logs

@Geod24
Copy link
Member

Geod24 commented Aug 10, 2023

I'm needing some way to pass a custom path for the dub.json and use the current directory as the cwd.

What's your use case ?

MrcSnm added a commit to MrcSnm/dub that referenced this issue Aug 10, 2023
@MrcSnm
Copy link
Contributor Author

MrcSnm commented Aug 10, 2023

What's your use case ?

I'm separating some part of configurations in other folders for my program, the problem is that I'm unable to pass it while keeping a custom root directory. It all started by my need of unnamed dependencies, I have a meta dub program which outputs those unnamed dependencies, but I'm trying to keep at least the main program from not using this meta thing.

WebFreak001 added a commit that referenced this issue Aug 13, 2023
@MrcSnm MrcSnm closed this as completed Aug 13, 2023
@Geod24
Copy link
Member

Geod24 commented Dec 22, 2023

I still don't understand this use case. Why do you need unnamed dependencies ?

@MrcSnm
Copy link
Contributor Author

MrcSnm commented Dec 23, 2023

I still don't understand this use case. Why do you need unnamed dependencies ?

Because my engine is a main program which imports the user package as a dependency when in the release process. I'm still using it and I believe it won't change anytime soon.

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