Skip to content

registry: remove deprecated HostCertsDir() and SetCertsDir()#50373

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:registry_deprecated
Jul 11, 2025
Merged

registry: remove deprecated HostCertsDir() and SetCertsDir()#50373
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:registry_deprecated

Conversation

@thaJeztah
Copy link
Member

registry: remove deprecated HostCertsDir

This was deprecated in dd7ab0e which was
in v28, and no longer has any consumer, so we can remove it.

registry: remove deprecated SetCertsDir and unify CertsDir code

This was deprecated in b633c4c, which was
in v28, and no longer has any consumer, so we can remove it.

Now that we no longer have to synchronise CertsDir with SetCertsDir
we can also remove the synchronization (homedir.GetConfigHome() does
some additional lookups, but those usually are just looking up env-vars,
and user.Current() already has a sync.Once or equivalent). Also
unifying the platform-specific code to remove some abstraction and put
the logic in plain sight.

- Human readable description for the release notes

Go SDK: registry: remove deprecated `HostCertsDir()` and `SetCertsDir()` functions.

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

This was deprecated in dd7ab0e which was
in v28, and no longer has any consumer, so we can remove it.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah marked this pull request as draft July 10, 2025 20:46
This was deprecated in b633c4c, which was
in v28, and no longer has any consumer, so we can remove it.

Now that we no longer have to synchronise `CertsDir` with `SetCertsDir`
we can also remove the synchronization (`homedir.GetConfigHome()` does
some additional lookups, but those usually are just looking up env-vars,
and `user.Current()` already has a `sync.Once` or equivalent). Also
unifying the platform-specific code to remove some abstraction and put
the logic in plain sight.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the registry_deprecated branch from 547f98d to 5862b92 Compare July 10, 2025 20:47
@thaJeztah thaJeztah marked this pull request as ready for review July 10, 2025 20:47
@thaJeztah thaJeztah merged commit 1d272a4 into moby:master Jul 11, 2025
251 of 257 checks passed
@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 11, 2025
@thaJeztah thaJeztah deleted the registry_deprecated branch July 11, 2025 21:32
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.

4 participants