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

Commit fails after update to 3.6.0 #158

Open
SirClickALot opened this issue May 21, 2024 · 3 comments
Open

Commit fails after update to 3.6.0 #158

SirClickALot opened this issue May 21, 2024 · 3 comments

Comments

@SirClickALot
Copy link

I have just performed a composer update on my local Drupal development site via the CLI and noted that an attempt was made to update to 2.50 from 3.5.0...

Upgrading chi-teck/drupal-code-generator (3.5.0 => 3.6.0)

This appeared to work OK until I tried to commit and then I got a commit error - never seen a commit error before! ...

C:\Users\nick\Sites\bit-by-bit.org\public_html> git.exe add --force --pathspec-from-file=- --pathspec-file-nul C:\Users\nick\Sites\bit-by-bit.org\public_html> git.exe rm --pathspec-from-file=- --pathspec-file-nul pathspec 'vendor/composer/a8af1a19/Chi-teck-drupal-code-generator-7794c26/.github/dependabot.yml' did not match any files

Should I be concerned about this, what does it actually mean?
Things might still be fine locally but I am loathed to push this up to PROD in case it knocks it out of action.

Thanks for any advice.

As you can see, I am developing the site on Windows.

@Chi-teck
Copy link
Owner

I think you can just add everything (git add path/to/dcg) and commit. Also note the commiting vendor packages is not a good idea. Drupal flow recommends deploying vendor directory through composer install command.

@SirClickALot
Copy link
Author

Hi, thanks for coming back to me.
I did indeed add everything, I always do, literally a git add .
I do understand the convention of not committing the vendor folder itself but right now my PROD (although it's not really live) is on very cheep hosting that does not support rebuilding via composer.
BUT my real question is WHAT does the massage actually MEAN as I have never in years, seen a local commit fail?

Thanks again.

@Chi-teck
Copy link
Owner

I don't know what you were trying to achieve by git rm. The message just says you don't have that file locally.

that does not support rebuilding via composer.

You don't have to rebuild packages on prod server. It's possible to build everything locally and upload to remove server through rsync.

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

2 participants