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

Support absolute paths in composer autoload sections #171

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

VincentLanglet
Copy link
Contributor

Hi @janedbal,

I recently tried your lib and it's really great.

I just encounter an issue, when I use an absolute path in my autoload.classmap key of the composer.json, this lib consider it's a relative path when composer does resolve the absolute path. I made some checks and

  • /src is not found by composer (but does by your lib), so it means that composer don't have a relative-path fallback when the absolute is not found. It just respect my path.
  • /my-absolute-path is found by composer (but not your lib)

I made a fix to respect absolute path given and updated the tests.

src/ComposerJson.php Outdated Show resolved Hide resolved
@janedbal janedbal changed the title Fix the way absolute path are handled Support absolute paths in composer autoload sections Aug 6, 2024
@janedbal janedbal merged commit c11ae11 into shipmonk-rnd:master Aug 6, 2024
36 checks passed
@VincentLanglet
Copy link
Contributor Author

Thanks ! If you have time for a patch release, this would allow me to unable again this lib on my ci :)

@janedbal
Copy link
Member

janedbal commented Aug 8, 2024

Released as 1.7.0

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