Skip to content

bake: sort extra-hosts before generating build options#3789

Open
crazy-max wants to merge 1 commit intodocker:masterfrom
crazy-max:bake-hosts-order
Open

bake: sort extra-hosts before generating build options#3789
crazy-max wants to merge 1 commit intodocker:masterfrom
crazy-max:bake-hosts-order

Conversation

@crazy-max
Copy link
Copy Markdown
Member

fixes #3788

This change makes bake emit extra-hosts in a stable order before passing them into build options.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@thaJeztah
Copy link
Copy Markdown
Member

Is the problem that the bake file uses a map (or similar)? Curious if we have a way to preserve the order in this they are defined. It may be a corner case, but (eg) in this case, order may matter because I think the first match is used;

127.0.0.1   example.com
192.168.1.10 example.com

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.

bake: extra-hosts causes build cache miss due to nondeterminstic ordering

2 participants