-
Notifications
You must be signed in to change notification settings - Fork 175
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
Template does not process if multiple classes exist #437
Comments
I've not been able to recreate this problem. I specifically was using version 3.2.1 and Git version 2.38.0, but on Linux. It might be some issue with the version of awk being use (based on output you mentioned)? Can let me know the output of Can you doublecheck your instructions to reproduce? For example, where you write Can you also show me the output of:
and the output of:
|
Installing awk through Homebrew did not resolve the issue. However, installing gawk via Homebrew did fix the issue! 🙌 Here's the outputs you asked for, in case you're still interested in trying to replicate this. MacOS 12.6 awk version: This is the output of
This is the output of
|
Should
function set_awk() {
local pgm
for pgm in "${AWK_PROGRAM[@]}"; do
command -v "$pgm" &> /dev/null && AWK_PROGRAM=("$pgm") && return
[[ "$OSTYPE" =~ ^[Dd]arwin ]] && return # only gawk works on MacOS
done
} ? |
I'm not sure. Perhaps the internal template processor can be made compatible with the MacOS awk. |
Describe the bug
If multiple local classes are specified, templates do not seem to process or produce a file.
To reproduce
Can this be reproduced with the yadm/testbed docker image: Unknown
Steps to reproduce the behavior:
yadm init
yadm config local.class someclass
echo "This is a sample text" > example.txt##template
yadm add example.txt##template
yadm status
ls
rm example
yadm config --add local.class someotherclass
yadm status
ls
Expected behavior
The file
example.txt
should be created each timeyadm status
is run. However, theexample.txt
file is not created after adding the second class. The following output is seen after yadm commands, if there are two local classes:Environment
Additional context
I was unable to reproduce this with the yadm docker image. I was unable to product any files via alternative or template files with the docker image. I assume that problem is either user error or unrelated to this issue.
The text was updated successfully, but these errors were encountered: