- Issue created by @ressa
- 🇩🇰Denmark ressa Copenhagen
If this is indeed true, then it's probably Major or even Critical, since it may break web sites, or make them vulnerable.
- Status changed to Closed: works as designed
12 months ago 8:52am 10 January 2024 - 🇩🇰Denmark ressa Copenhagen
Ah, I had a look around for an example, and found this:
$ grep -A 3 "file-mapping" web/core/composer.json "file-mapping": { "[project-root]/.editorconfig": "assets/scaffold/files/editorconfig", "[project-root]/.gitattributes": "assets/scaffold/files/gitattributes", "[web-root]/.csslintrc": "assets/scaffold/files/csslintrc",
I misunderstood the documentation, and replaced
[web-root]
with the actual web-rootweb
. After updating to this, all works well:"extra": { "drupal-scaffold": { "locations": { "web-root": "web/" }, "file-mapping": { "[web-root]/.htaccess": { "append": "assets/htaccess-php82.txt" } } },
Appending also works now after
composer install
:$ composer install Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Generating autoload files 42 packages you are using are looking for funding. Use the `composer fund` command to find out more! Scaffolding files for drupal/recommended-project: - Append to [web-root]/.htaccess from assets/htaccess-php82.txt [...]