Rename master branch to main
parent
4a7abd79c9
commit
0868245589
|
@ -2,7 +2,7 @@ Contributing to Composer
|
||||||
========================
|
========================
|
||||||
|
|
||||||
Please note that this project is released with a
|
Please note that this project is released with a
|
||||||
[Contributor Code of Conduct](https://github.com/composer/composer/blob/master/CODE_OF_CONDUCT.md).
|
[Contributor Code of Conduct](https://github.com/composer/composer/blob/main/CODE_OF_CONDUCT.md).
|
||||||
By participating in this project you agree to abide by its terms.
|
By participating in this project you agree to abide by its terms.
|
||||||
|
|
||||||
Reporting Issues
|
Reporting Issues
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.1-dev"
|
"dev-main": "2.1-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|
|
@ -95,7 +95,7 @@ possible for safety.
|
||||||
----
|
----
|
||||||
|
|
||||||
A few other methods are available for more complex usages, please refer to the
|
A few other methods are available for more complex usages, please refer to the
|
||||||
source/docblocks of [the class itself](https://github.com/composer/composer/blob/master/src/Composer/InstalledVersions.php).
|
source/docblocks of [the class itself](https://github.com/composer/composer/blob/main/src/Composer/InstalledVersions.php).
|
||||||
|
|
||||||
### Knowing the path in which a package is installed
|
### Knowing the path in which a package is installed
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ contributing.
|
||||||
|
|
||||||
If you would like to contribute to Composer, please read the
|
If you would like to contribute to Composer, please read the
|
||||||
[README](https://github.com/composer/composer) and
|
[README](https://github.com/composer/composer) and
|
||||||
[CONTRIBUTING](https://github.com/composer/composer/blob/master/.github/CONTRIBUTING.md)
|
[CONTRIBUTING](https://github.com/composer/composer/blob/main/.github/CONTRIBUTING.md)
|
||||||
documents.
|
documents.
|
||||||
|
|
||||||
The most important guidelines are described as follows:
|
The most important guidelines are described as follows:
|
||||||
|
|
|
@ -210,6 +210,6 @@ different installation path.
|
||||||
|
|
||||||
[1]: ../04-schema.md#type
|
[1]: ../04-schema.md#type
|
||||||
[2]: ../04-schema.md#extra
|
[2]: ../04-schema.md#extra
|
||||||
[3]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/PluginInterface.php
|
[3]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/PluginInterface.php
|
||||||
[4]: https://github.com/composer/composer/blob/master/src/Composer/Installer/InstallerInterface.php
|
[4]: https://github.com/composer/composer/blob/main/src/Composer/Installer/InstallerInterface.php
|
||||||
[5]: https://github.com/composer/composer/blob/master/src/Composer/Installer/LibraryInstaller.php
|
[5]: https://github.com/composer/composer/blob/main/src/Composer/Installer/LibraryInstaller.php
|
||||||
|
|
|
@ -325,12 +325,12 @@ process however, so do not use it in plugins which do not absolutely require it.
|
||||||
|
|
||||||
[1]: ../04-schema.md#type
|
[1]: ../04-schema.md#type
|
||||||
[2]: ../04-schema.md#extra
|
[2]: ../04-schema.md#extra
|
||||||
[3]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/PluginInterface.php
|
[3]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/PluginInterface.php
|
||||||
[4]: https://github.com/composer/composer/blob/master/src/Composer/Composer.php
|
[4]: https://github.com/composer/composer/blob/main/src/Composer/Composer.php
|
||||||
[5]: https://github.com/composer/composer/blob/master/src/Composer/IO/IOInterface.php
|
[5]: https://github.com/composer/composer/blob/main/src/Composer/IO/IOInterface.php
|
||||||
[6]: https://github.com/composer/composer/blob/master/src/Composer/EventDispatcher/EventSubscriberInterface.php
|
[6]: https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/EventSubscriberInterface.php
|
||||||
[7]: ../01-basic-usage.md#package-versions
|
[7]: ../01-basic-usage.md#package-versions
|
||||||
[8]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/Capable.php
|
[8]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/Capable.php
|
||||||
[9]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/Capability/CommandProvider.php
|
[9]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/Capability/CommandProvider.php
|
||||||
[10]: https://symfony.com/doc/current/components/console.html
|
[10]: https://symfony.com/doc/current/components/console.html
|
||||||
[11]: https://github.com/composer/composer/blob/master/src/Composer/Util/SyncHelper.php
|
[11]: https://github.com/composer/composer/blob/main/src/Composer/Util/SyncHelper.php
|
||||||
|
|
|
@ -178,15 +178,15 @@ Depending on the [script types](#event-names) you will get various event
|
||||||
subclasses containing various getters with relevant data and associated
|
subclasses containing various getters with relevant data and associated
|
||||||
objects:
|
objects:
|
||||||
|
|
||||||
- Base class: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/master/src/Composer/EventDispatcher/Event.php)
|
- Base class: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/Event.php)
|
||||||
- Command Events: [`Composer\Script\Event`](https://github.com/composer/composer/blob/master/src/Composer/Script/Event.php)
|
- Command Events: [`Composer\Script\Event`](https://github.com/composer/composer/blob/main/src/Composer/Script/Event.php)
|
||||||
- Installer Events: [`Composer\Installer\InstallerEvent`](https://github.com/composer/composer/blob/master/src/Composer/Installer/InstallerEvent.php)
|
- Installer Events: [`Composer\Installer\InstallerEvent`](https://github.com/composer/composer/blob/main/src/Composer/Installer/InstallerEvent.php)
|
||||||
- Package Events: [`Composer\Installer\PackageEvent`](https://github.com/composer/composer/blob/master/src/Composer/Installer/PackageEvent.php)
|
- Package Events: [`Composer\Installer\PackageEvent`](https://github.com/composer/composer/blob/main/src/Composer/Installer/PackageEvent.php)
|
||||||
- Plugin Events:
|
- Plugin Events:
|
||||||
- init: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/master/src/Composer/EventDispatcher/Event.php)
|
- init: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/Event.php)
|
||||||
- command: [`Composer\Plugin\CommandEvent`](https://github.com/composer/composer/blob/master/src/Composer/Plugin/CommandEvent.php)
|
- command: [`Composer\Plugin\CommandEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/CommandEvent.php)
|
||||||
- pre-file-download: [`Composer\Plugin\PreFileDownloadEvent`](https://github.com/composer/composer/blob/master/src/Composer/Plugin/PreFileDownloadEvent.php)
|
- pre-file-download: [`Composer\Plugin\PreFileDownloadEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/PreFileDownloadEvent.php)
|
||||||
- post-file-download: [`Composer\Plugin\PostFileDownloadEvent`](https://github.com/composer/composer/blob/master/src/Composer/Plugin/PostFileDownloadEvent.php)
|
- post-file-download: [`Composer\Plugin\PostFileDownloadEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/PostFileDownloadEvent.php)
|
||||||
|
|
||||||
## Running scripts manually
|
## Running scripts manually
|
||||||
|
|
||||||
|
|
|
@ -82,12 +82,12 @@ class Compiler
|
||||||
if ($process->run() == 0) {
|
if ($process->run() == 0) {
|
||||||
$this->version = trim($process->getOutput());
|
$this->version = trim($process->getOutput());
|
||||||
} else {
|
} else {
|
||||||
// get branch-alias defined in composer.json for dev-master (if any)
|
// get branch-alias defined in composer.json for dev-main (if any)
|
||||||
$localConfig = __DIR__.'/../../composer.json';
|
$localConfig = __DIR__.'/../../composer.json';
|
||||||
$file = new JsonFile($localConfig);
|
$file = new JsonFile($localConfig);
|
||||||
$localConfig = $file->read();
|
$localConfig = $file->read();
|
||||||
if (isset($localConfig['extra']['branch-alias']['dev-master'])) {
|
if (isset($localConfig['extra']['branch-alias']['dev-main'])) {
|
||||||
$this->branchAliasVersion = $localConfig['extra']['branch-alias']['dev-master'];
|
$this->branchAliasVersion = $localConfig['extra']['branch-alias']['dev-main'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue