Skip to content

commands: micro optimization for source date epoch#3770

Merged
jsternberg merged 1 commit intodocker:masterfrom
jsternberg:containerd-source-date-epoch
Apr 3, 2026
Merged

commands: micro optimization for source date epoch#3770
jsternberg merged 1 commit intodocker:masterfrom
jsternberg:containerd-source-date-epoch

Conversation

@jsternberg
Copy link
Copy Markdown
Collaborator

@jsternberg jsternberg commented Apr 2, 2026

Avoids the call to os.Getenv when it is unnecessary because it would
be overwritten anyway.

Removes the comments about moving environment variable parsing to a
method for use by library consumers. That method exists in containerd
and this set of code doesn't actually perform any parsing since the
parsing of this time is done within buildkit and not on the client.

crazy-max
crazy-max previously approved these changes Apr 2, 2026
@thaJeztah
Copy link
Copy Markdown
Member

Ah, yes, I recalled I had a branch, but had to do some work in containerd first! (haven't looked yet at the code, but probably should be good 😅)

Avoids the call to `os.Getenv` when it is unnecessary because it would
be overwritten anyway.

Removes the comments about moving environment variable parsing to a
method for use by library consumers. That method exists in containerd
and this set of code doesn't actually perform any parsing since the
parsing of this time is done within buildkit and not on the client.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg force-pushed the containerd-source-date-epoch branch from 27e0e2d to d781c83 Compare April 3, 2026 15:02
@jsternberg jsternberg requested a review from crazy-max April 3, 2026 15:03
@jsternberg jsternberg merged commit 530dc0b into docker:master Apr 3, 2026
160 checks passed
@jsternberg jsternberg deleted the containerd-source-date-epoch branch April 3, 2026 16:06
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