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

Fix falsy .gitignore file when cache:clear fails #268

Conversation

alexander-schranz
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT
Documentation PR sulu/sulu-docs#prnum

What's in this PR?

Avoid falsely .gitignore file when cache:clear fails.

Why?

Currently there is a bug FriendsOfSymfony/FOSHttpCacheBundle#639. As the auto-scripts with cache:clear all called before the gitignore script the gitignore is not modified correctly and ends in having the composer.lock, symfony.lock and package-lock.json file still excluded. To avoid this we move the scripts to the post-root-package-install where we already modify the .env files.

@alexander-schranz alexander-schranz added the enhancement New feature or request label Jan 9, 2025
@alexander-schranz alexander-schranz force-pushed the enhancement/gitignore-prio-over-post-install-scripts branch from 95f5542 to 15ca37b Compare January 9, 2025 10:07
@alexander-schranz alexander-schranz added bug Something isn't working and removed enhancement New feature or request labels Jan 9, 2025
@alexander-schranz alexander-schranz changed the title Avoid falsely .gitignore file when cache:clear fails Fix falsely .gitignore file when cache:clear fails Jan 9, 2025
@alexander-schranz alexander-schranz changed the title Fix falsely .gitignore file when cache:clear fails Fix falsy .gitignore file when cache:clear fails Jan 9, 2025
@Prokyonn Prokyonn merged commit c240d66 into sulu:2.5 Jan 9, 2025
4 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/gitignore-prio-over-post-install-scripts branch January 9, 2025 11:24
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

Successfully merging this pull request may close these issues.

2 participants