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
Any chance to remove the #StandWithUkraine ? #10807
Comments
This probably should be a discussion rather than an issue. |
Totally agreed - it just feels strange to see too simplified statement of a very complex situation all the time, while you just want to do your work. |
Plus it is such a double standard... where was all the wokeness in the other 10+ wars before Ukraine? |
Since you agree this should be a discussion and not an issue, could you please close this issue and open a discussion instead? |
@Andreas-Schoenefeldt The inclusion of this phrase was a turning point in the fight against the aggressor. One cannot be a supporter of common sense! |
The message come from packagist.org You can choose a politic-free mirror from: https://packagist.org/mirrors For example: Enable a mirror from China:
Disable the mirror:
|
Another way to remove it is by removing this specific package: |
@kodima05, this is amazingly simple! Thank you so much for the hint! |
|
This doesn't work. $ composer remove ukeloop/stand-with-ukraine
ukeloop/stand-with-ukraine is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update ukeloop/stand-with-ukraine
Loading composer repositories with package information
Package "ukeloop/stand-with-ukraine" listed for update is not locked.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
100 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Info from https://repo.packagist.org: #StandWithUkraine |
git clone https://github.com/composer/composer.git --branch 2.5.4 ~/composer-build && \
composer install -o -d ~/composer-build && \
wget https://raw.githubusercontent.com/politsin/snipets/master/patch/composer.patch -q -O ~/composer-build/composer.patch && \
cd ~/composer-build && patch -p1 < composer.patch && \
php -d phar.readonly=0 bin/compile && \
rm /usr/local/bin/composer && \
php composer.phar install && \
php composer.phar update && \
mv ~/composer-build/composer.phar /usr/local/bin/composer && \
rm -rf ~/composer-build && \
chmod +x /usr/local/bin/composer |
ThX > work like charm @archlinux |
but there is no path > |
archlinux archerz use >
|
New machine, this is the best answer yet, but you can remove the branch 2.4.4 to get the newest composer. |
I updated the text above with the last branch. When I used the master branch instead of specifying a particular version, I didn't like the console output with the last commit id. And when switching between machines, it was impossible to tell which version of the cpmposer was being used. In the end, I decided to specify the branch explicitly, and the work became more comfortable. Maybe there is a way to use the "last" branch instead of the master branch, but I don't know it =) |
You don't need the --branch, it will use "main" which is always merged to the latest one to save you needing to update Or you could use --branch=main if you don't want to maintain the comment. Cheers 🙂 |
As the composer team unsurprisingly resolves to censorship on this issue, I opened this on on stackoverflow to rescue the solutions: https://stackoverflow.com/questions/76130997/composer-how-to-remove-standwithukraine-cli-message |
No chances, until terrorist state will go out of soverign country. |
Saddly, this repo is too damn slow. |
Here is a small update for people using herd... Cheers 🍻 composer:purge-politics() {
# the keyword local destructs the memory variables so they wont stick around
# after your function closes to interfere with any other system settings
# which server are you going to run herd or something else (homebrew, xamp)
local server="herd"
local composer_path
# choose the appropriate path for composer
[[ $server == "herd" ]] && composer_path="/Users/<your home directory>/Library/Application Support/Herd/bin/composer" || composer_path="/usr/local/bin/composer"
# ** note change <your home directory>
git clone https://github.com/composer/composer.git ~/composer-build && \
composer install -o -d ~/composer-build && \
wget https://raw.githubusercontent.com/politsin/snipets/master/patch/composer.patch -q -O ~/composer-build/composer.patch && \
cd ~/composer-build && patch -p1 < composer.patch && \
php -d phar.readonly=0 bin/compile && \
rm /usr/local/bin/composer && \
php composer.phar install && \
php composer.phar update && \
mv ~/composer-build/composer.phar "$composer_path" && \
rm -rf ~/composer-build && \
chmod +x "$composer_path"
} |
|
your solution work perfectly, thank you so much |
Acting like a child. |
Acting like a child: using an international it-project for political propaganda and demonstration of absolute misunderstanding of the situation. It's been 2 years and it's already clear to everyone that Ukraine is just a way to launder money for US military corporations, and the composer is a dying project that should be gradually removed from their projects. |
@artembeloglazov, do you know a working alternative for composer? Best wishes |
@Andreas-Schoenefeldt Package repository mirrors have been created separately from packagist.org for a while now. There is no alternative to the client for loading and resolving dependencies yet, but I think it will come soon. |
The message isn't there anymore and you are still bitching? 🤷🏻♂️ |
The whole issue moved to this discussion, with a nice list of solutions: https://github.com/composer/composer/discussions/10808
Actually the discussion above was now cencored - I tried to restore the solutions here: https://stackoverflow.com/questions/76130997/composer-how-to-remove-standwithukraine-cli-message
The text was updated successfully, but these errors were encountered: