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

Mantle outputs not working with .yaml file extension #227

Open
christopher-buss opened this issue Oct 20, 2024 · 2 comments
Open

Mantle outputs not working with .yaml file extension #227

christopher-buss opened this issue Oct 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@christopher-buss
Copy link

Describe the bug
Mantle outputs does not work with .yaml.

If I run mantle outputs mantle.yaml I get a:
Unable to determine git branch. Are you in a git repository?
The filename, directory name, or volume label syntax is incorrect. (os error 123)

@christopher-buss christopher-buss added the bug Something isn't working label Oct 20, 2024
@blake-mealey
Copy link
Owner

By default, Mantle attempts to determine the environment based on the Git branch. It looks like you're not running from a Git context, so you'll need to explicitly pass the environment in with --environment <name> (or -e <name>) for short.

@christopher-buss
Copy link
Author

christopher-buss commented Oct 21, 2024

If I rename the file to mantle.yml and run the command, it works without an issue, without needing to specific the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants