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

6.34 breaks .cfignore #1300

Closed
cloudlena opened this issue Jan 10, 2018 · 6 comments
Closed

6.34 breaks .cfignore #1300

cloudlena opened this issue Jan 10, 2018 · 6 comments
Labels

Comments

@cloudlena
Copy link

Command

cf push

What occurred

No app files found in '/.../my-app'

What you expected to occur

The app should be pushed.

CLI Version

6.34

CC API Endpoint Version

2.99

CF Trace

Platform & Shell Details

Mac OS X 10.13.2, iTerm 3.1.5

Any other relevant information

I usually add .cfignore files like the one here to my apps. So far this has worked fine. With CLI 6.34 however, this doesn't work anymore. Adding /* at the beginning of a .gitignore file and then specifying the files I don't want to ignore with !/... should be possible according to the Git docs. However, when I do it with .cfignore, the cf push command fails. Specifically:

/*

!/mybinary

fails. But

/*

!mybinary

works.

The second choice can push unwanted files and folders which are called mybinary but aren't at the root level of my project.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/154215694

The labels on this github issue will be updated when the story is started.

@rlk833
Copy link

rlk833 commented Jan 10, 2018

For me it actually ignored completely the entire .cfignore. I had many ignores in it and everything was pushed. None of the ignores were honored.

This happened as soon as I stepped up to this cf cli. The previous release worked perfectly with no changes to the .cfignore file.

I don't know if it is significant, but all of the entries are of the form /yada to denote only from the current directory should yada be ignored, not if found somewhere else.

@dkoper
Copy link

dkoper commented Jan 11, 2018

Hi @mastertinner

Nice catch! Thanks for those details. I believe we've just fixed it. Can you try with our edge binary and confirm it's all working as expected for you now?
https://github.com/cloudfoundry/cli#edge-binaries

Cheers,
Dies Koper
CF CLI PM

@cloudlena
Copy link
Author

@dkoper, with the edge binary it does indeed work as expected. Many thanks for the quick fix!

@cloudlena
Copy link
Author

@dkoper, can we get a release with this fix?

@jbpivotal
Copy link
Contributor

@mastertinner Yes. We're working on that today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants