-
Notifications
You must be signed in to change notification settings - Fork 50
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
Have option for vendir sync to run in different directory. #75
Comments
To clarify a few scenarios:
Does that line up with what you would expect in this cases? |
Hmmm, that seems to complicate things unnecessarily, and doesn't capture the important thing about how relative paths are calculated with My simple rule would have been that if Thus if you use So:
would be the same as having said:
So yes the table is sort of correct, but misses detail about what happens with relative paths supplied to |
do we have some precedent in other tools to do something like this? tar does have -C that does something related. |
There's many other tools that support this model as well as many that don't. Is it a requirement that other tools do the same or that is proven to be convenient? |
im just not familiar with any except tar. do you have some concrete examples (especially for commonly used tools)?
it's not a requirement, but it's definitely an important part of research. id like to see if other tools do it because -C affects all other flags that take in files. it also might be good to understand what makes vendir special as compared to other tools (i hope this wont be a pattern we add to all others). additionally |
It's not so common because typically tools don't need to work relative to the current directory. Most tools do support specify the root of the "context" of where actions will take place. As an example, kubectl does this when you do Another tool I can think of, as developer that I use is
It's not specific that the tool changes directory but that can specify the root of where actions should take place.
|
added --chdir flag: 85f693d. will be included in upcoming release. |
Describe the problem/challenge you have
When working with packages and where the
vendir.yml
file is located in a sub directory, it is extra work to ensure that you firstcd
into the directory before runningvendir sync
. If running command manually or scripting actions working across multiple packages, means have to use something like the following to ensure left in original directory when command done.Describe the solution you'd like
Would like to see a command line option where can tell
vendir sync
the directory to run in. Eg.,The
c
for option indicative of "change directory".Thus
vendir sync
would then itself change the working directory of the process to the specified directory before taking any action.Anything else you would like to add:
N/A
cc @jorgemoralespou
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: