Skip to content
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

Merged
merged 9 commits into from
Feb 14, 2024

Conversation

rbuckland
Copy link
Contributor

Add the BUILD file full path, as a variable to the docker backend configuration.

Copy link
Member

@kaos kaos left a 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.

Copy link
Contributor

@huonw huonw left a 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!

Copy link
Member

@kaos kaos left a 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 :)

Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 great!

Comment on lines -115 to +118
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`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@kaos kaos changed the title Add extra build_file_path to docker vars Docker: Add full_directory interpolation value for repository configuration. Feb 14, 2024
@rbuckland
Copy link
Contributor Author

@kaos i do not have the permissions to merge this (nor should I :-) ) so it's in your hands now

Thanks

@kaos
Copy link
Member

kaos commented Feb 14, 2024

@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. 👍🏽
(treating user facing changes a little more cautiously than internal ones..)

Copy link
Contributor

@huonw huonw left a 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.

@huonw huonw merged commit 71600cc into pantsbuild:main Feb 14, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants