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

Composer always reports files are changed #10

Open
M1ke opened this issue Jun 16, 2015 · 0 comments
Open

Composer always reports files are changed #10

M1ke opened this issue Jun 16, 2015 · 0 comments

Comments

@M1ke
Copy link

M1ke commented Jun 16, 2015

Every time I try and move from a git branch with this package installed to one that does not have it, I get an error that files in the package have changed.

To test this I removed vendor/ and then ran composer install. This library is being required by lisachenko/go-aop-php which in turn was required by codeception/aspect-mock. This is the entry in composer.lock:

{
    "name": "jakubledl/dissect",
    "version": "1.0.x-dev",
    "source": {
        "type": "git",
        "url": "https://github.com/jakubledl/dissect.git",
        "reference": "112ee99f32b0884821f7df4b93ba922461dcf916"
    },
    "dist": {
        "type": "zip",
        "url": "https://api.github.com/repos/jakubledl/dissect/zipball/112ee99f32b0884821f7df4b93ba922461dcf916",
        "reference": "112ee99f32b0884821f7df4b93ba922461dcf916",
        "shasum": ""
    },
    "require": {
        "php": ">=5.3.3"
    },
    "require-dev": {
        "symfony/console": "~2.1"
    },
    "suggest": {
        "symfony/console": "for the command-line tool"
    },
    "bin": [
        "bin/dissect.php",
        "bin/dissect"
    ],
    "type": "library",
    "autoload": {
        "psr-0": {
            "Dissect": [
                "src/"
            ]
        }
    },
    "notification-url": "https://packagist.org/downloads/",
    "license": [
        "unlicense"
    ],
    "authors": [
        {
            "name": "Jakub Lédl",
            "email": "[email protected]"
        }
    ],
    "description": "Lexing and parsing in pure PHP",
    "homepage": "https://github.com/jakubledl/dissect",
    "keywords": [
        "ast",
        "lexing",
        "parser",
        "parsing"
    ],
    "time": "2013-01-15 19:48:58"
}

Immediately upon running composer install I cd vendor/jakubledl/dissect and run git status with this output:

On branch 1.0
Your branch is up-to-date with 'composer/1.0'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   bin/dissect.php

However upon opening bin/dissect.php there are no changes noted (or at least none recognised by my diff tool).

Sadly I can't really suggest any further reasons why this might happening as it's never occured with another package and occurs every time I remove the package with this one, but I am submitting in case it's been spotted by anybody else.

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

No branches or pull requests

1 participant