-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix standalone role bootstrapping #30
Conversation
ssbarnea
commented
Jul 24, 2021
•
edited
Loading
edited
- Fixes a bug introduce when we added support for project_dir and we still continued to rely on CWD in few places.
- Adds tests for covering this use-case
afb37ae
to
a6504ba
Compare
efe89e2
to
76372f4
Compare
src/ansible_compat/runtime.py
Outdated
@@ -122,6 +122,7 @@ def exec(self, args: Union[str, List[str]]) -> CompletedProcess: | |||
check=False, | |||
stdout=subprocess.PIPE, | |||
stderr=subprocess.PIPE, | |||
env=os.environ, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens by default. Why did you add it?
.gitmodules
Outdated
@@ -0,0 +1,3 @@ | |||
[submodule "test/assets/ansible-role-mysql"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd go for git subtree or put the synching logic into the pytest setup. Making the contributors do this is fragile.
There is a lot of debugging junk i need to remove. I think I found the culprit yesterday, mainly submodules cloning no longer works with checkout v2. Instead I will just create a mini embedded role for testing. |
293a6c8
to
914db58
Compare