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

Enhancement: Use mage from project sub directories, by making mage look for magefiles in parent directories if not found #468

Open
pantsmann opened this issue May 15, 2023 · 1 comment

Comments

@pantsmann
Copy link

Describe the feature
I'd like to be able to run mage from any project directory and access the targets defined in mage files in the project root. I'd like to do this by default without adding the -d option. Mage would search parent directories the same as it searches the current directory and stop searching when it arrives at the system root or when it finds mage files.

What problem does this feature address?
I think this makes mage just a little bit easier and quicker to use.

Additional context
I've got a branch and PR for doing this

@mloskot
Copy link

mloskot commented Nov 17, 2023

Great idea, not longer than two days ago I was looking for just that in mage features.
I keep my Magefile-s in the magefiles/ subfolder of the root. It would be very useful if I can step into account/environment/stack and run mage deploy there, and Mage can climb up until it finds my magefiles/and executes 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants