-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Docker: Add full_directory
interpolation value for repository configuration.
#20530
Docker: Add full_directory
interpolation value for repository configuration.
#20530
Conversation
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.
Thank you for contributing.
I would like to know more about the use case and motivation to introduce this. Especially if the BUILD file function build_file_dir()
has been considered and ruled out as not enough/appropriate.
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.
Thanks for taking the time to contribute!
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.
Thanks!
This all looks good to me, bar the name change :)
Co-authored-by: Andreas Stenius <[email protected]>
Co-authored-by: Andreas Stenius <[email protected]>
Co-authored-by: Andreas Stenius <[email protected]>
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.
🎉 great!
Co-authored-by: Andreas Stenius <[email protected]>
The `name` variable is the `docker_image`'s target name, `directory` and | ||
`parent_directory` are the name of the directory in which the BUILD file is for the | ||
target, and its parent directory respectively. | ||
The `name` variable is the `docker_image`'s target name. | ||
|
||
With the directory variables available, given a sample repository path of `baz/foo/bar/BUILD`, | ||
then `directory` is `bar`, `parent_directory` is `foo` and `full_directory` will be `baz/foo/bar`. |
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.
🎉
full_directory
interpolation value for repository configuration.
@kaos i do not have the permissions to merge this (nor should I :-) ) so it's in your hands now Thanks |
Yea, I know thanks 😃 Was waiting a beat to give @huonw time to speak up in case he (or anyone else) had any final remarks before landing. Will merge this tomorrow if nothing turns up. 👍🏽 |
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.
Sweet! I like it.
Thanks for the doc improvements too.
Add the BUILD file full path, as a variable to the docker backend configuration.