Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Can't update with composer #229

Closed
novia713 opened this issue Nov 30, 2017 · 9 comments
Closed

Can't update with composer #229

novia713 opened this issue Nov 30, 2017 · 9 comments

Comments

@novia713
Copy link

is this normal? what should i do?

root@nsXXXXX1.ip-x-x-x-x.eu   master ↑1 U:1  ~/html/api_nexum  composer up --with-dependencies -o --prefer-dist

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
No patches supplied.
Gathering patches for dependencies. This might take a minute.
 - Updating contentacms/contenta_jsonapi dev-8.x-1.x (1c794e4 => 1589c19):     Update failed (Source directory web/profiles/contrib/contenta_jsonapi has unpushed changes on the current branch: 
A       config/sync/.htaccess
A       config/sync/coffee.configuration.yml
A       config/sync/core.base_field_override.node.client.promote.yml
A       config/sync/core.base_field_override.node.collaborator.promote.yml
A       config/sync/core.base_field_override.node.collaborator.title.yml
A       config/sync/core.base_field_override.node.date_assignement.promote.yml
A       config/sync/core.base_field_override.node.document.promote.yml
A       config/sync/core.base_field_override.node.document.title.yml
A       config/sync/core.base_field_override.node.employee.promote.yml
A       config/sync/core.base_field_override.node.employee.title.yml
... etc ...
@simesy
Copy link

simesy commented Nov 30, 2017

Add

"discard-changes": true

into the config section of your composer.json, then run composer update again

@e0ipso
Copy link
Member

e0ipso commented Nov 30, 2017

Alternatively you can also run COMPOSER_DISCARD_CHANGES=1 composer update … as a one-time-thing.

However it seems that you're storing extra config inside of the distribution folder, and that seems wrong. You should have your site-owned cofig location.

@simesy
Copy link

simesy commented Nov 30, 2017

Agreed ^^

@novia713
Copy link
Author

novia713 commented Nov 30, 2017

@e0ipso @simesy i wonder how am i storing any confing, given i never did nor
drush cex nor drupal ce. also didn't never export config from the proper site ... :-(

@novia713
Copy link
Author

also nor including in composer config "discard-changes": true nor giving the following command
COMPOSER_DISCARD_CHANGES=1 composer up --with-dependencies -o --prefer-dist the system founds any solution. so, the problem reamins.

i don't want to forget to say thanks for the project in general and specially for this problem in particular :-)

@e0ipso
Copy link
Member

e0ipso commented Apr 27, 2018

Can you clarify what the current error is? Did you ever get past it @novia713?

@e0ipso e0ipso changed the title can't update with composer Can't update with composer Apr 27, 2018
@e0ipso
Copy link
Member

e0ipso commented Apr 27, 2018

I'm leaning towards that this is a composer issue. Something is special about your setup / local environment.

Please request a re-open if you cannot get past this error.

@e0ipso e0ipso closed this as completed Apr 27, 2018
@novia713
Copy link
Author

this was months ago, i don't remind what i did, anyway it didn't show up anymore

@e0ipso
Copy link
Member

e0ipso commented Apr 27, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants