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, mount: allow realtive mountpoints wrt to work dir for --mount=type=cache and --mount=type=bind #4452

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented Dec 7, 2022

When working with --mount=type=bind and --mount=type=cache allow target to accept relative paths w.r.t to the configured work dir.

Closes: #4309

internal/parse/parse.go Outdated Show resolved Hide resolved
internal/parse/parse.go Outdated Show resolved Hide resolved
@rhatdan
Copy link
Member

rhatdan commented Dec 15, 2022

Since filepath.Join automatically does a clean, there is no reason to add one to the code. Remove the clean and this
LGTM

When working with `--mount=type=bind` and `--mount=type=cache` allow
`target` to accept relative paths w.r.t to the configured work dir.

Closes: containers#4309

Signed-off-by: Aditya R <arajan@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Dec 16, 2022

@vrothberg @giuseppe @nalind @umohnani8 PTAL

@flouthoc
Copy link
Collaborator Author

flouthoc commented Jan 2, 2023

@containers/buildah-maintainers @nalind PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, giuseppe, vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [flouthoc,giuseppe,vrothberg]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan rhatdan merged commit f8eb738 into containers:main Jan 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support relative mountpoints when building
5 participants