Ich habe bei Contao 4 noch kein Paket manuell hinzugefügt und kenne mich da nicht so gut aus. Ich habe es mal probiert und folgendes in die composer.json eingetragen:
Code:
...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/MetaModels/attribute_tablemulti"
}
],
"require": {
"vendor/metamodels/attribute_tablemulti": "2.1.x-dev"
}
...
Zumindest wurde mir dann im Contao Manager das Paket als manuell "hinzugefügt angezeigt". Beim Testlauf brachte die Task-Konsole dann folgende Fehlermeldung:
Code:
Deprecation warning: require.vendor/metamodels/attribute_tablemulti is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9]([_.-]?[a-z0-9]+)*". Make sure you fix this as Composer 2.0 will error.
Using config.component-dir has been deprecated. Please use extra.contao-component-dir instead.
Failed to clone the git@github.com:MetaModels/attribute_tablemulti.git repository, try running in interactive mode so that you can enter your GitHub credentials
In Git.php line 351:
Failed to clone git@github.com:MetaModels/attribute_tablemulti.git, git was
not found, check that it is installed and in your PATH env.
sh: git: command not found
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
# Process terminated with exit code 1
# Result: General error
---
### The background task has stopped unexpectedly ###
Lesezeichen