Allow for disambiguation of identical file names in different directories when using --file-mark
#835
Labels
enhancement
This issue is a feature request
--file-mark
#835
Describe the problem/challenge you have
When using the
--file-mark
flag, only a filename is able to be specified, from one of thepath
s specified with the-f, --file
flag. E.g., given the following directory structure:with the following contents in
b/some-file.yaml
:and the following contents in
dataDir/some-file.yaml
:Running
ytt -f a/b -f a/dataDir/ --file-mark some-file.yaml:type=data --output-files foo --debug
(note use of the--debug
flag) produces the following output:with no files in directory
foo
, where the intended output would be a filefoo/some-file.yaml
with contents:If we rename
b/some-file.yaml
tob/other-file.yaml
, and run the same command, the output is now:which produces the expected output file
foo/other-file.yaml
.Describe the solution you'd like
Allow
--file-mark
to accept absolute paths, or introduce an additional flag, something like--file-mark-absolute
which allows for absolute paths to files to be marked.Anything else you would like to add:
This issue is similar to the discussion at #326, which is, in my opinion, fundamentally the same issue, but the proposed approach is a bit more specific; to allow for OS paths to specify filenames. Note as well that the discussion does not appear to have ever been resolved.
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: