Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add environment variable expansion for docker config plugin dirs #6487

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

Open
Paulchen5 wants to merge 1 commit into docker:master
base: master
Choose a base branch
Loading
from Paulchen5:6486-add-environment-variable-expansion-for-docker-config-plugin-dirs

Conversation

@Paulchen5
Copy link

@Paulchen5 Paulchen5 commented Sep 25, 2025
edited
Loading

- What I did

  • Added environment variable expansion to the config plugin dirs
  • Added an example test (I guess 😅 )

Closes #6486

- How I did it

  • searching for config file references in the code, thinking and assisted by GitHub Copilot

- How to verify it

  • run the tests (I guess 😅 )

- Human readable description for the release notes

Add support to expand environment variables in docker plugin config directory string

- Add support to expand environment variables in docker plugin config directory string

I am really really new to Go like 0.5% experience. The test is mainly assisted by Copilot with a bit of brain usage by my side. Feel free to help me to add like a negative test or something like that if the current one is not enough

- A picture of a cute animal (not mandatory but encouraged)
ducks

@Paulchen5 Paulchen5 force-pushed the 6486-add-environment-variable-expansion-for-docker-config-plugin-dirs branch from 1759e72 to d91b9d5 Compare September 25, 2025 06:53
Copy link
Author

Hi @vvoland, any updates on this?

@Paulchen5 Paulchen5 force-pushed the 6486-add-environment-variable-expansion-for-docker-config-plugin-dirs branch from f9717ab to c3326fd Compare October 1, 2025 15:01
Copy link
Collaborator

vvoland commented Oct 2, 2025

LGTM after squashing commits

Copy link
Member

I'm slightly on the fence; wondering; does the (for the example) $HOMEBREW_PREFIX env-var ever change? And would it be an option to expand the env-var before adding the path to the config?

The point here is that we don't to env-var expansion for any of the other paths, so this may now become a sliding slope where it needs to be added to every path that's in config; the extraPaths was already added to allow customisation with a custom set of extra directories.

Copy link
Author

I'm slightly on the fence; wondering; does the (for the example) $HOMEBREW_PREFIX env-var ever change? And would it be an option to expand the env-var before adding the path to the config?

In general the $HOMEBREW_PREFIX env-var shouldn't really change as far as I know. At least when using standard configuration. However when writing a guide for example it's more helpful / clear wo write the path with the prefix into the guide so the reader has to think less about the content. So I think it would be a nice and helpful feature which shouldn't break somethin.

The point here is that we don't to env-var expansion for any of the other paths, so this may now become a sliding slope where it needs to be added to every path that's in config; the extraPaths was already added to allow customisation with a custom set of extra directories.

Feel free to tell me about the option names / code files and I will have a look whether I can implement it for the additional options

@thaJeztah

...gins/manager/manager.go`
test: Add test for plugin directory environment variable expansion
Signed-off-by: Paulchen <lukas.23022005@gmail.com>
@Paulchen5 Paulchen5 force-pushed the 6486-add-environment-variable-expansion-for-docker-config-plugin-dirs branch from c3326fd to da71a33 Compare October 2, 2025 20:19
Copy link
Author

LGTM after squashing commits

done 👍

Copy link
Author

Hey @vvoland are the changes fine and is it fine when I ping you? I don't wanna annoy you 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vvoland vvoland Awaiting requested review from vvoland

@thaJeztah thaJeztah Awaiting requested review from thaJeztah

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Expand environment variables in docker plugin config string

AltStyle によって変換されたページ (->オリジナル) /