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

[BUG] -f option should be resolved relative to the context directory #44

Open
tetchel opened this issue Mar 31, 2021 · 3 comments
Open
Labels
bug Something isn't working

Comments

@tetchel
Copy link
Contributor

tetchel commented Mar 31, 2021

ie if you do buildah bud -f Containerfile ./my-buildah-dir then it should look for the containerfile at ./my-buildah-dir/Containerfile

for some reason, absolute paths are used https://github.com/redhat-actions/buildah-build/blob/main/src/index.ts#L61

@tetchel tetchel added the bug Something isn't working label Mar 31, 2021
@tetchel
Copy link
Contributor Author

tetchel commented Mar 31, 2021

this would be a breaking change, so maybe we can leave it as-is for now.

@tetchel
Copy link
Contributor Author

tetchel commented Oct 4, 2021

i'm moving this to 'done' because we don't have a 'wontfix' pipeline.

HarryMichal added a commit to HarryMichal/toolbox that referenced this issue Jan 10, 2022
The action does not use provided context when looking for a
Containerfile[0].

[0] redhat-actions/buildah-build#44

containers#980
HarryMichal added a commit to HarryMichal/toolbox that referenced this issue Jan 10, 2022
The action does not use provided context when looking for a
Containerfile[0].

[0] redhat-actions/buildah-build#44

containers#980
HarryMichal added a commit to HarryMichal/toolbox that referenced this issue Jan 10, 2022
The action does not use provided context when looking for a
Containerfile[0].

[0] redhat-actions/buildah-build#44

containers#981
HarryMichal added a commit to containers/toolbox that referenced this issue Jan 10, 2022
The action does not use provided context when looking for a
Containerfile[0].

[0] redhat-actions/buildah-build#44

#981
@evanshortiss
Copy link

Just got bitten by this. IIRC other actions use the behaviour described in the Issue description. I opened #123 since it would be helpful to document this behaviour.

lduktus pushed a commit to lduktus/containers that referenced this issue Jun 12, 2024
Last commit worked, but builds that copy files don't work, trying to set the context.
See:
redhat-actions/buildah-build#134
redhat-actions/buildah-build#44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants