mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-17 22:05:35 +08:00
Update docs about source module
This commit is contained in:
@@ -317,3 +317,24 @@ When an open source project has multiple licenses, multiple files can be specifi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
When the license of an open source project uses different files between versions,
|
||||||
|
`path` can be used as an array to list the possible license files:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"redis": {
|
||||||
|
"type": "git",
|
||||||
|
"path": "php-src/ext/redis",
|
||||||
|
"rev": "release/6.0.2",
|
||||||
|
"url": "https://github.com/phpredis/phpredis",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": [
|
||||||
|
"LICENSE",
|
||||||
|
"COPYING"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
@@ -297,3 +297,23 @@ pkg.json 存放的是非源码类型的文件资源,例如 musl-toolchain、UP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
当一个开源项目的许可证在不同版本间使用不同的文件,`path` 参数可以使用数组将可能的许可证文件列出:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"redis": {
|
||||||
|
"type": "git",
|
||||||
|
"path": "php-src/ext/redis",
|
||||||
|
"rev": "release/6.0.2",
|
||||||
|
"url": "https://github.com/phpredis/phpredis",
|
||||||
|
"license": {
|
||||||
|
"type": "file",
|
||||||
|
"path": [
|
||||||
|
"LICENSE",
|
||||||
|
"COPYING"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user