-
Notifications
You must be signed in to change notification settings - Fork 931
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
push fails with an empty directory #687
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/108559196. |
Thanks Ben, we'll investigate. |
This change was introduced in 2b77387. @simonleung8 and I think the best solution here would be to change the bug in Tracker to a feature (which we've done), and then solve this problem by checking the count of files before we even attempt the upload, failing if there is nothing to upload, and printing a helpful message. |
Hi Ben, We have made it to return a helpful message again:
It's in our edge binary, will go into our next release. Regards, |
This fix is included in cf CLI release v6.14.1 published today. |
Hi I want to reopen this issue since I encountered a similar problem while trying to push an app using CLI v6.14.1. cli/cf/commands/application/push.go Lines 183 to 190 in 563cbf5
Thanks |
Hi @mfeltscher, What is the structure of your app dir? The output from |
Hi @krishicks
The folder we want to expose is |
What are you running to push the app? |
@jtarchie Can you provide some insight into this usage of the static buildpack? I'm not sure what the expectation is of what's actually being pushed. |
I'm running |
By the way, that's the content of my
|
What path is the manifest pointing to? |
Nothing special in there:
|
@mfeltscher the staticfile_buildpack needs to have access to Do you have |
Yes, my (not working with CLI v6.14.1 anymore)
As said, this used to work with older versions of the CLI just fine. Back to my initial request: Would it be possible, to extend the check for files to also include directories? This would fix my issue. |
Please don't include |
This is what |
I'm sorry, just noticed that it has Maybe a different approach. Instead of trying to find the right combination of include/exclude directives. Is it possible to generate the |
This would actually be possible but I still don't really like that solution. As said, why can't an app just consist of directories and no files? |
I feel the slash in the .cfignore for StaticFile should not be there (e.g. |
Doesn't work either way. The slash only ensures that the file has to match a file in root. |
it used to fail somewhat helpfully with:
now:
The text was updated successfully, but these errors were encountered: