Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Changing docker client config attributes to Bazel labels #2042

Merged
merged 7 commits into from
Apr 15, 2022

Conversation

linzhp
Copy link
Collaborator

@linzhp linzhp commented Mar 15, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #2040

What is the new behavior?

toolchain_configure only takes a Bazel label

Does this PR introduce a breaking change?

  • Yes
  • No

Existing applications will have to change the client_config of their toolchain_configure rule to be a Bazel label.

Other information

This is more correct than #2032 and #2041, but it introduces a breaking change.

Copy link
Collaborator

@uhthomas uhthomas left a comment

Choose a reason for hiding this comment

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

The PR and logic itself seems sound to me, I don't see any use-cases where an absolute path would be desirable. Despite this, it should still possible for the toolchain to use the client config specified in the home directory, or with the DOCKER_CONFIG environment variable.|

Pending response to the comments I left, I'm happy to approve this.

README.md Outdated Show resolved Hide resolved
toolchains/docker/toolchain.bzl Outdated Show resolved Hide resolved
Copy link
Collaborator

@uhthomas uhthomas 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 making those changes! LGTM

@linzhp linzhp merged commit 9f83609 into bazelbuild:master Apr 15, 2022
@linzhp linzhp deleted the label branch April 15, 2022 21:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants