Skip to content

Fix finding composer cache dir - #233

Merged
ramsey merged 4 commits into
ramsey:v2from
motleyhand:fix-composer-cache-dir
Oct 8, 2023
Merged

ramsey merged 4 commits into
ramsey:v2from
motleyhand:fix-composer-cache-dir

Conversation

@TamasSzigeti

@TamasSzigeti TamasSzigeti commented Sep 30, 2022 •

Copy link
Copy Markdown
Contributor

Description

Fix missing working dir when getting composer cache dir config
Bumping included composer.phar version to fix CI error – to the minimum that has this fix

Motivation and context

Fixes #225

How has this been tested?

Tested by manually running composer_paths.sh in a directory where there is no composer.lock
Current tests do not fail because there is another composer.lock in tests dir.
Added another test case, hope it works (:

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

@TamasSzigeti
TamasSzigeti marked this pull request as ready for review September 30, 2022 06:27
@TamasSzigeti
TamasSzigeti marked this pull request as draft September 30, 2022 06:29
@TamasSzigeti
TamasSzigeti marked this pull request as ready for review September 30, 2022 06:43
@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Could you have a look, please?

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Fixed the (unrelated) CI error before I noticed it is also done in #237
This should be green now

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Fixed conflict

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Seems the v1 fail already happens in upstream branch, so this might be good to go?

@ramsey

ramsey commented Nov 3, 2022

Copy link
Copy Markdown
Owner

@TamasSzigeti Please update your branch with the latest upstream changes. Thanks!

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@TamasSzigeti Please update your branch with the latest upstream changes. Thanks!

@ramsey Done

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Adjusted the test for the changed github output

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey Is there anything yet to be done here?

@ramsey

ramsey commented Dec 9, 2022

Copy link
Copy Markdown
Owner

@TamasSzigeti Are you able to fix the test failures?

@TamasSzigeti

Copy link
Copy Markdown
Contributor Author

@ramsey
When it failed it was already failing in master, not coming from my changes. I rebased and will fix if it still fails

@petemcw

petemcw commented Feb 13, 2023

Copy link
Copy Markdown

Has there been any further progress on this? I can report that caching does not work correctly when using a "working-directory" input.

@mxr576

mxr576 commented Aug 21, 2023

Copy link
Copy Markdown

Meh, I had just opened a duplicate in #247 before I found this 🤦‍♂️

@mxr576 mxr576 mentioned this pull request Aug 21, 2023
1 of 7 tasks
@mxr576

mxr576 commented Aug 21, 2023

Copy link
Copy Markdown

Related issue: #246

@TamasSzigeti

TamasSzigeti commented Aug 21, 2023 •

Copy link
Copy Markdown
Contributor Author

@mxr576 I totally forgot about this PR, maybe you could take it over, fix tests?

@mxr576

mxr576 commented Aug 28, 2023

Copy link
Copy Markdown

@mxr576 I totally forgot about this PR, maybe you could take it over, fix tests?

I cannot make any promises, tests were not executed on my PR because I am a first time contributor and I do not see failures due to: "The logs for this run have expired and are no longer available."

Rebasing/retriggering the build could be useful

@ramsey

ramsey commented Aug 28, 2023

Copy link
Copy Markdown
Owner

@mxr576 If you want to reopen your PR, I can click the button to allow the tests to run.

@mxr576

mxr576 commented Aug 29, 2023

Copy link
Copy Markdown

Thanks, reopened

@TamasSzigeti

TamasSzigeti commented Oct 8, 2023 •

Copy link
Copy Markdown
Contributor Author

@ramsey Sorry for taking this long, I fixed the tests, should be all green now.

@mxr576

mxr576 commented Oct 8, 2023

Copy link
Copy Markdown

@mxr576 I totally forgot about this PR, maybe you could take it over, fix tests?

Same here... ;S thx!!! \o/

@codecov

codecov Bot commented Oct 8, 2023

Copy link
Copy Markdown

Codecov Report

Merging #233 (d68c9ba) into v2 (12e7194) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##               v2     #233   +/-   ##
=======================================
  Coverage   84.23%   84.23%           
=======================================
  Files           7        7           
  Lines         203      203           
=======================================
  Hits          171      171           
  Misses         32       32           
Files Coverage Δ
bin/composer_paths.sh 97.43% <100.00%> (ø)

@ramsey
ramsey merged commit c49029a into ramsey:v2 Oct 8, 2023
@ramsey

ramsey commented Oct 8, 2023

Copy link
Copy Markdown
Owner

Thank you!

@TamasSzigeti
TamasSzigeti deleted the fix-composer-cache-dir branch October 9, 2023 08:23
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.

Cannot find composer.json

4 participants