Skip to content

Fixes tests/Application .gitignore#146

Merged
Zales0123 merged 1 commit intoSylius:1.3from
mmenozzi:patch-1
Nov 28, 2018
Merged

Fixes tests/Application .gitignore#146
Zales0123 merged 1 commit intoSylius:1.3from
mmenozzi:patch-1

Conversation

@mmenozzi
Copy link
Contributor

The tests/Application/public/media/image/.gitignore file has been probably added to the index with a force add (git add -f) because the parent .gitignore file (the one in tests/Application) doesn't properly de-ignore it.
So when someone creates a new plugin from this skeleton the tests/Application/public/media/image/.gitignore file is not added to index and the build fails (the tests/Application/public/media/image/ must exists) otherwise you'll get the error:

[Liip\ImagineBundle\Exception\InvalidArgumentException]                                                                 
  Root image path not resolvable ...

@mmenozzi mmenozzi requested a review from a team as a code owner November 17, 2018 16:40
@Zales0123
Copy link
Contributor

Zales0123 commented Nov 19, 2018

Seems like a fair solution 👍 Could you also remove this line from Travis configuration? And I believe it should be opened to branch 1.2 :) Could you please rebase it?

@Zales0123 Zales0123 changed the base branch from master to 1.2 November 19, 2018 08:09
@Zales0123 Zales0123 changed the base branch from 1.2 to 1.3 November 19, 2018 14:56
@Zales0123
Copy link
Contributor

Ok, seems that it won't be so easy, as I thought and we should probably incorporate these changes to 1.2 and 1.3 separately :)

@mmenozzi
Copy link
Contributor Author

Yes I tested it on 1.3 only. I’ll remove that line tomorrow morning.

@mmenozzi
Copy link
Contributor Author

Hi @Zales0123,
since this PR is on 1.3 there is no line to remove on the .travis.yml file so I think it can be merged.
Do you want me to create a separate PR for the 1.2 branch with the same change in the .gitignore and the mkdir removal in the .travis.yml?

The `tests/Application/public/media/image/.gitignore` file has been probably added to the index with a force add (`git add -f`) because the parent `.gitignore` file (the one in `tests/Application`) doesn't properly de-ignore it.
So when someone creates a new plugin from this skeleton the `tests/Application/public/media/image/.gitignore` file is not added to index and the build fails (the `tests/Application/public/media/image/` must exists) otherwise you'll get the error:
```
[Liip\ImagineBundle\Exception\InvalidArgumentException]                                                                 
  Root image path not resolvable ...
```
@Zales0123
Copy link
Contributor

Thank you, Manuele! 🎉

@Zales0123 Zales0123 merged commit e7b417f into Sylius:1.3 Nov 28, 2018
@Zales0123
Copy link
Contributor

Feel welcomed to open a similar PR to 1.2, sorry for a long merge time :)

@mmenozzi
Copy link
Contributor Author

Ok will be done. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants