I use Composer - PHP Package Manager for sending email via phpMailer library.
It writes to ‘vendor’ folder but this conflicts with hugo modules.
Is it possible for Hugo to ignore the vendor folder?
hugo --cleanDestinationDir --gc --minify
go list -m: can't compute 'all' using the vendor directory
(Use -mod=mod or -mod=readonly to bypass.)
Error: failed to list modules: failed to execute 'go [list -m -json all]': failed to execute binary "go" with args [list -m -json all]: go list -m: can't compute 'all' using the vendor directory
(Use -mod=mod or -mod=readonly to bypass.)
*errors.errorString
Happens with all modules e.g
[module]
[[module.imports]]
path = "github.com/hugo-mods/icons
composer.json
{
"name": "root/test",
"type": "project",
"license": "private",
"require": {
"phpmailer/phpmailer": "^6.5",
"google/recaptcha": "^1.2"
}
}