Skip to content
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

build: support for saving local state by build ref #1735

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

tonistiigi
Copy link
Member

Some build parameters like directory paths, are never sent to buildkit. But it may still make sense to store them and associate with a unique ref for a build that is used to track other parameters on buildkit side.

@crazy-max

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
build/build.go Show resolved Hide resolved
@jedevc jedevc added this to the v0.11.0 milestone Apr 17, 2023
Comment on lines +1650 to +1651
LocalPath: lp,
DockerfilePath: dp,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
LocalPath: lp,
DockerfilePath: dp,
LocalPath: filepath.ToSlash(lp),
DockerfilePath: filepath.ToSlash(dp),

Copy link
Member Author

Choose a reason for hiding this comment

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

We do want this to be the actual path that can be looked up from the system. If we do ToSlash then it might not be possible to get back the original path.

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.

3 participants