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

Environment vars not loaded from file when runme invoked with --filename flag #703

Open
eshepelyuk opened this issue Nov 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eshepelyuk
Copy link

eshepelyuk commented Nov 27, 2024

Hello

Let me describe the bug

  1. Runme version
runme --version
runme version 3.9.4 (Homebrew) on 2024-11-21T22:49:56Z
  1. Env file, named .env
export MY_VAR=SOME_VALUE
  1. Runme playbook, named test.runme
```sh {"name":"env"}
echo "@@${MY_VAR}@@"
```
  1. Invoking runme run with --filename doesn't read the variables from .env
runme run --all -y --filename test.runme
@@@@
  1. Although runme run without --filename works OK
runme run --all -y
@@SOME_VALUE@@

The same inconsistent behaviour is happening when invoking runme tui.

@eshepelyuk eshepelyuk changed the title Environment variables are not loaded from file when runme invoked with --filename flag Environment vars not loaded from file when runme invoked with --filename flag Nov 27, 2024
@sourishkrout sourishkrout self-assigned this Nov 27, 2024
@sourishkrout sourishkrout added the bug Something isn't working label Nov 27, 2024
@sourishkrout
Copy link
Member

Thanks for reporting this issue, @eshepelyuk.

We will look into it and get back to you.

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