-
Notifications
You must be signed in to change notification settings - Fork 214
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
porter install --file fails with path to file outside pwd #1447
Comments
@vdice and I were talking about the --file parameter and how it's something we originally added but at this point it isn't something that is supported well enough in the code to be usable. I think we ran into this when Vaughn added support for --registry to porter publish and we assume that the file we are building from is always porter.yaml. The other piece of it is that Porter was written with the understanding that it is always run from within the bundle directory. Before 1.0 we need to decide if we are going to do the work to support file (and cnab-file) flags or if they should be removed. |
@vdice Do you think that your fix from earlier, allowing people to specify a build context directory, fixes this? |
@carolynvs yes. Perhaps we can check in with @simongdavies to be sure we've covered the intended use cases, but |
@simongdavies Can you try building the bundle using the --dir (works the same way as the docker build context in conjunction with --file) and let us know if that fixed the problem? e.g. porter build --dir a |
This isn't quite working the way we want it to yet. In the example below, I want
|
@carolynvs Since both |
|
currently, |
Thanks for narrowing down where the bug is hiding! I'm going to assign this to you since I think you are pretty close to getting it fixed. |
Closed by #2142. |
Describe the bug
Executing porter install with --file specifying a manifest in a directory outside the current working directory fails.
To Reproduce
Steps to reproduce the behavior:
porter install --file a\porter.yaml
Expected behavior
Bundle should be built and installed
Porter Command and Output
Version
porter v0.33.0 (991a5a2)
The text was updated successfully, but these errors were encountered: