-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Coding Standard tries itself to install with installPath when it's the root package #19
Comments
As I understand, the package adds itself so the coding style so it is also used when running Codesniffer on the package itself, so it is wanted behavior, correct? I might be able to look into this at the weekend and open a PR (no promises though). You don't happen to have your formatting settings for usage in Netbeans lying around, do you? |
Hi @bastianschwarz, thanks for reporting this! I've just discussed this with @frenck and we're going to take a more detailed look at this issue tomorrow (Friday). Our current thinking is to implement both of your suggested changes:
Well post an update when we've implemented these changes. |
Sounds great, give me a shout if I can do anything to help. |
As you might have noticed we hadn't gotten around to this issue. Your pull-request is much appreciated! The changes from your PR have been merged and will be released with v0.3.2 as soon as #22 has been merged. |
Problem/Motivation
Today, I started to develop my own coding style. Of course, I want to use the same CI tools, including PHPCompatibility. Unfortunately, the installer tries to install the root package by using the install path (which isn't available, since the root package of course doesn't install itself).
Expected behaviour
The installer should install all dependency packages with the install path, but either ignore the root package or install the root package using the repo root.
Actual behaviour
The installer tries to install the root package with its install path:
Steps to reproduce
Create a package with type
"type": "phpcodesniffer-standard"
and the installer as dependency:The problem repo will be https://github.com/codenamephp/codingstandard but the code is not comitted yet (obviously)
Proposed changes
The root could either be ignored or installed via the root path.
Ignoring the package would be easy by adding a check for instanceof RootPackageInterface in updateInstalledPaths().
Choosing the correct path could be done by the same instance of check when getting the install path in updateInstalledPaths().
The text was updated successfully, but these errors were encountered: