Skip to content

[CI] Make sure composer cache is properly used #15359

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

Merged
merged 1 commit into from
May 19, 2021

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented May 19, 2021

PR #15358 made sure we had a composer cache folder. This PR is making sure we use the cache properly.

Currently, we are using the following paths:

  • /var/workspace/
  • /var/_checker/
  • /var/_sf_app/

The issue is that hashFiles only works for files in /var/workspace/. So I moved everything down one level.

  • /var/workspace/docs
  • /var/workspace/_checker/
  • /var/workspace/_sf_app/

Now we will use the two new composer.lock files to know if we should save the github cache or not (ie if new dependencies were updated).

I think that the composer cache will contain many versions of a package. Ie, we dont need a separate cache for 4.4 and one of 5.2 etc.

@javiereguiluz
Copy link
Member

Thank you Tobias.

@javiereguiluz javiereguiluz merged commit 06e3809 into symfony:4.4 May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants