Skip to content

Fix local image resolution - #34

Merged
wlan0 merged 1 commit into
mainfrom
local-images
Jun 30, 2025
Merged

Fix local image resolution#34
wlan0 merged 1 commit into
mainfrom
local-images

Conversation

@wlan0

@wlan0 wlan0 commented Jun 28, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@wlan0
wlan0 requested a review from katiewasnothere June 28, 2025 01:28
- pass the user specified image in the resolve request
- default to linux/arm64 for cross platform builds
@makhov

makhov commented Jun 29, 2025

Copy link
Copy Markdown

Probably it makes sense to change the log line as well. And in general, reference parsing becomes a bit confusing. For example, this line doesn't do anything useful since ParseAnyReference calls ParseNormalizedNamed anyway.

@wlan0
wlan0 merged commit 10e1847 into main Jun 30, 2025
2 checks passed
@wlan0
wlan0 deleted the local-images branch June 30, 2025 17:03
Comment thread pkg/build/frontend.go
ResolveMode: llb.ResolveModePreferLocal.String(),
}
_, digest, img, err := bopts.Resolver.ResolveImageConfig(ctx, ref.String(), resolverOpts)
_, digest, img, err := bopts.Resolver.ResolveImageConfig(ctx, resolvedBaseStageName.Result, resolverOpts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add a comment to resolveStates that details why we don't use the ref here and how the constructed pname value is used?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants