zepgram / magento2-fast-vm

Optimal vagrant developer box for Magento2. Folders synced by nfs/rsync. This box includes Magento developer utilities.
MIT License
110 stars 35 forks source link

allow-plugins */* workaround for composer >= v2.2 #108

Closed robert-cardillo closed 1 year ago

robert-cardillo commented 1 year ago

https://magento.stackexchange.com/questions/352353/why-composer-install-is-asking-to-allow-plugins

robert-cardillo commented 1 year ago

config.yaml file I was having the issue with

vmconf:
  machine_name: 'Vagrant Magento 2'
  network_ip: '192.168.60.0'
  host_name: 'zepgram'
  memory: '4096'
  cpus: '1'
  mount: 'nfs'
  path: 'root'
  provision: 'all'
composer:
  username: 'magentoUsernameKey'
  password: 'magentoPasswordKey'
git:
  name: 'John Doe'
  email: 'john@doe.com'
  host: 'github.com'
  repository: 'ssh://git@github.com:project-name.git'
magento:
  url: 'dev.magento.com'
  source: 'composer'
  edition: 'community'
  version: '2.4.2'
  php_version: 'default'
  sample: 'true'
  mode: 'developer'
  currency: 'USD'
  language: 'en_US'
  time_zone: 'America/Chicago'
  crypt_key: ''
zepgram commented 1 year ago

MR updated for:

  1. retro-compatiblity
  2. limitation on "allow-plugins" option by adding only plugins allowed natively:

commit: https://github.com/zepgram/magento2-fast-vm/commit/59c8d8e9c63fc7adc508e6d2f439599c5fa8b950