-
Notifications
You must be signed in to change notification settings - Fork 137
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
Print full path rather than RelativePath only. #903
Conversation
Signed-off-by: Ernst von Oelsen <ernst.vonoelsen@tngtech.com>
This is my first contribution to this project, I learned about it on last month's CloudNativeCon & KubeCon Europe in Paris. I'm happy to receive any feedback on how to improve it. |
Signed-off-by: Ernst von Oelsen <ernst.vonoelsen@tngtech.com>
d686f8c
to
c33ee2f
Compare
Hey @ernstvonoelsen , thanks for this. |
@ernstvonoelsen Could you please post some testing output if you have done? Does the description prints the absolute path now? |
console output from $ tree
.
├── directory_1
│ └── values.yaml
└── directory_2
└── values.yaml
2 directories, 2 files
$ ytt -f directory_1/values.yaml -f directory_2/values.yaml
ytt: Error: Unmarshaling YAML template 'values.yaml': yaml: line 3: could not find expected ':' same test directory, but from $ ytt -f directory_1/values.yaml -f directory_2/values.yaml
ytt: Error: Unmarshaling YAML template 'file directory_1/values.yaml': yaml: line 3: could not find expected ':' when called from one of the sub directories: $ pwd
directory_1
$ ytt -f values.yaml -f ../directory_2/values.yaml
ytt: Error: Unmarshaling YAML template 'file values.yaml': yaml: line 3: could not find expected ':' $ pwd
directory_2
$ ytt -f values.yaml -f ../directory_1/values.yaml
ytt: Error: Unmarshaling YAML template 'file ../directory_1/values.yaml': yaml: line 3: could not find expected ':' From what I conclude from the existing code, each
So |
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.
LGTM
targets resolution of /issues/895
This PR just switches to print each file's
Description()
rather thanRelativePath()
. In order to keep quoting consistent, some single quotes were removed.