Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Resource `git` actions `checkout` and `sync` abend in a Dokken environment: no /dev/tty #8855
When Dokken testing the git resource as follows:
I encounter an issue as described on SO.
The error is:
I was able to test and confirm that in the Dokken environment:
It appears the issue is here?
This appears to be confirmed by the fact that the git unit specs require (stub)
I believe the correct way to accomplish this is
Before I sink more of my time. Would you accept a pull request implementing this approach?
if there's a way to pass the moral equivalent of ssh's
@lamont-granquist thanks for looking at this.
The absence of a TTY is the default in many of my chef-automated use cases i.e. cloud server setup's, containers, etc.
In my case I'm making more use of dokken, and here I can't sidestep the git resource.
Rather than piping to stdout and stderr it seems the more generic approach is to send the data to files and read it from there.
Question: Is there an example of the best-practice Chef way to write/read temp files in a recipe?
In this case the process would be
This (no tty) seems to be an issue more widespread than the